public abstract class AbstractTable extends Object implements ITable
| Modifier and Type | Field and Description |
|---|---|
protected com.github.siwenyan.common.MyEnvironment |
myEnvironment |
protected Object |
supplyLock |
| Constructor and Description |
|---|
AbstractTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendSupply(com.github.siwenyan.dish_parser.ISupply supply) |
void |
broadcastStop() |
void |
clearSupply() |
Set<IGuest> |
cloneGuests() |
com.github.siwenyan.dish_parser.ISupply |
cloneSupply() |
int |
countSupply() |
void |
cutInSupply(com.github.siwenyan.dish_parser.ISupply supply,
int cutInAt) |
void |
deliciousSupply(com.github.siwenyan.dish_parser.ISupply supply) |
String |
dynamic(String text) |
com.github.siwenyan.cronjob.CronJobManager<com.github.siwenyan.dish_parser.ISupply> |
getCronJobManager() |
IGuest |
getFeedeeByFlavor(String cmd) |
Set<String> |
getFlavorsByRegex(String flavorRegex) |
com.github.siwenyan.common.Heart |
getHeart() |
com.github.siwenyan.common.MyEnvironment |
getMyEnvironment() |
IHost |
getMyHost() |
String |
getName() |
TableStatus |
getStatus() |
Object |
getSupplyLock() |
boolean |
hasSupply() |
void |
initEnvironment() |
void |
initialize() |
void |
initSupply(com.github.siwenyan.dish_parser.ISupply initSupply) |
String |
jsonHelp() |
void |
print(String text) |
void |
println(String text) |
void |
printlnUrgent(String line) |
String |
printSupply() |
void |
printTables() |
void |
promptQueueSize() |
void |
putAllGuests(Set<IGuest> guests) |
void |
register(IGuest guest) |
com.github.siwenyan.dish_parser.ISupply |
removeSupply(int index) |
boolean |
seeout(String name) |
void |
setMute(boolean mute) |
void |
setMyHost(IHost myHost) |
void |
setName(String name) |
void |
setStatus(TableStatus status) |
void |
start() |
boolean |
stop() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultCookprotected com.github.siwenyan.common.MyEnvironment myEnvironment
protected final Object supplyLock
public void initialize()
initialize in interface ITablepublic void initEnvironment()
initEnvironment in interface ITablepublic void println(String text)
println in interface com.github.siwenyan.common.IPrinterpublic void print(String text)
print in interface com.github.siwenyan.common.IPrinterpublic void printlnUrgent(String line)
printlnUrgent in interface ITablepublic void initSupply(com.github.siwenyan.dish_parser.ISupply initSupply)
initSupply in interface ITablepublic IGuest getFeedeeByFlavor(String cmd)
getFeedeeByFlavor in interface ITablepublic TableStatus getStatus()
public void setStatus(TableStatus status)
public void deliciousSupply(com.github.siwenyan.dish_parser.ISupply supply)
throws com.github.siwenyan.dish_parser.BadSmellException
deliciousSupply in interface ITablecom.github.siwenyan.dish_parser.BadSmellExceptionpublic int countSupply()
countSupply in interface ITablepublic String printSupply()
public com.github.siwenyan.dish_parser.ISupply removeSupply(int index)
removeSupply in interface ITablepublic void cutInSupply(com.github.siwenyan.dish_parser.ISupply supply,
int cutInAt)
cutInSupply in interface ITablepublic void clearSupply()
clearSupply in interface ITablepublic com.github.siwenyan.common.MyEnvironment getMyEnvironment()
getMyEnvironment in interface ITablepublic void appendSupply(com.github.siwenyan.dish_parser.ISupply supply)
appendSupply in interface ITablepublic void printTables()
printTables in interface ITablepublic com.github.siwenyan.dish_parser.ISupply cloneSupply()
cloneSupply in interface ITablepublic Set<String> getFlavorsByRegex(String flavorRegex)
getFlavorsByRegex in interface ITablepublic void promptQueueSize()
promptQueueSize in interface ITablepublic Object getSupplyLock()
getSupplyLock in interface ITablepublic com.github.siwenyan.cronjob.CronJobManager<com.github.siwenyan.dish_parser.ISupply> getCronJobManager()
getCronJobManager in interface ITablepublic Set<IGuest> cloneGuests()
cloneGuests in interface ITablepublic void putAllGuests(Set<IGuest> guests)
putAllGuests in interface ITablepublic void broadcastStop()
broadcastStop in interface ITablepublic com.github.siwenyan.common.Heart getHeart()
getHeart in interface com.github.siwenyan.common.ILivepublic boolean stop()
stop in interface com.github.siwenyan.common.ILiveCopyright © 2020. All rights reserved.