Package edu.tufts.hrilab.action.manager
Class KioskGoalManager
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.action.manager.KioskGoalManager
-
Field Summary
Fields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.apache.commons.cli.Option>Override this method to define command line options available in sub-class.voiddialogueHistoryCallback(Utterance u, boolean newUtterance) longgetKioskGoalGid(Symbol agentTeam) booleanlongvoidgoalStatusChangedCallback(GoalInfo goalInfo) protected voidinit()Perform any component initialization.protected voidparseArgs(org.apache.commons.cli.CommandLine cmdLine) Override this method to parse command line args in the sub-class.protected voidvoidquestionAskingCallback(Symbol agent, boolean active, Question question) voidsetKioskGoal(Predicate goal) voidsetKioskModeEnabled(boolean enabled) voidsetKioskSettingsFile(String filepath) voidsetKioskTimeout(long kioskTimeout) booleansetKioskTimeout(Symbol timeSymbol, Symbol timeUnitSymbol) voidAny component that needs particular shutdown logic needs to override this method andvoidMethods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
attachShutdownHook, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, main, shutdown
-
Constructor Details
-
KioskGoalManager
public KioskGoalManager()
-
-
Method Details
-
init
protected void init()Description copied from class:DiarcComponentPerform any component initialization. This should not be used for setting local fields to default values as was the case in DIARC. This method is called after the constructor, and after parseArgs. Setting default values should be done in field declaration or in the constructor.- Overrides:
initin classDiarcComponent
-
postRegistrationInit
protected void postRegistrationInit()- Overrides:
postRegistrationInitin classDiarcComponent
-
additionalUsageInfo
Description copied from class:DiarcComponentOverride this method to define command line options available in sub-class. This should be paired with a parseArgs implementation.- Overrides:
additionalUsageInfoin classDiarcComponent- Returns:
-
parseArgs
protected void parseArgs(org.apache.commons.cli.CommandLine cmdLine) Description copied from class:DiarcComponentOverride this method to parse command line args in the sub-class. Called directly after construction to pass runtime values that will override default values. This should parse all the options that additionalUsageInfo provides.- Overrides:
parseArgsin classDiarcComponent
-
setKioskModeEnabled
public void setKioskModeEnabled(boolean enabled) -
getKioskModeEnabled
public boolean getKioskModeEnabled() -
setKioskTimeout
public void setKioskTimeout(long kioskTimeout) -
setKioskTimeout
-
setKioskGoal
-
getKioskTimeout
public long getKioskTimeout() -
getKioskGoalPredicate
-
getWrappedKioskGoalPredicate
-
getKioskGoalGid
-
goalStatusChangedCallback
-
dialogueHistoryCallback
-
questionAskingCallback
-
setKioskSettingsFile
-
writeKioskSettingsToFile
public void writeKioskSettingsToFile() -
shutdownComponent
public void shutdownComponent()Description copied from class:DiarcComponentAny component that needs particular shutdown logic needs to override this method and- Overrides:
shutdownComponentin classDiarcComponent
-