Class NormCheckingActionContext
java.lang.Object
edu.tufts.hrilab.action.execution.Context
edu.tufts.hrilab.action.execution.ArgumentBasedContext
edu.tufts.hrilab.action.execution.DatabaseEntryContext<ActionDBEntry>
edu.tufts.hrilab.action.execution.ActionContext
edu.tufts.hrilab.action.execution.NormCheckingActionContext
-
Field Summary
Fields inherited from class edu.tufts.hrilab.action.execution.ArgumentBasedContext
arguments, variable
Fields inherited from class edu.tufts.hrilab.action.execution.Context
caller, childContexts, cmd, constraints, endTime, log, maxTime, startTime, stateMachine
-
Constructor Summary
ConstructorsConstructorDescriptionNormCheckingActionContext
(Context caller, StateMachine sm, ActionDBEntry action, List<? extends Object> arguments, Symbol actor) NormCheckingActionContext
(Context caller, StateMachine sm, ActionDBEntry action, Map<String, Object> bindings, ExecutionType executionType, Symbol actor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
doStep()
Executes the action corresponding to this context.Methods inherited from class edu.tufts.hrilab.action.execution.ActionContext
acquireLocks, affectEval, copy, getAffect, getBenefit, getConditionObserver, getContextDescription, getContextDescription, getCost, getEffectObserver, getEffects, getEffects, getMaxUrgency, getMinUrgency, getObligationConditions, getOverAllConditions, getPreConditions, getStateUpdates, getTranslation, handleInterrupt, isAction, isApproved, isScript, performAdditionalStatusUpdates, releaseLocks, resetConcreteContext, setExecType, setStartTime, setStatus, setTimeout, setupNextStep, startOverAllMonitor, updateAffect, updatePerformanceModels, verifyEffects, verifyReturnValue
Methods inherited from class edu.tufts.hrilab.action.execution.DatabaseEntryContext
addArgument, addVarArgArgument, collectArguments, getDBE, getSignatureInPredicateForm, setArgument, setDBE, setupArguments, setupArguments
Methods inherited from class edu.tufts.hrilab.action.execution.ArgumentBasedContext
addArgument, addArgument, bindPredicate, bindText, copyArguments, getArgument, getArguments, getArgumentSilent, getArgumentType, getArgumentValue, getEvaluatedArgument, getLocalArgument, hasArgumentInScope, hasLocalArgument, redistributeArguments, setArgument
Methods inherited from class edu.tufts.hrilab.action.execution.Context
addEvent, addEvent, addEvent, causedFailure, copyInternal, createSimulatedEquivalent, getActor, getActualLogicalValue, getChildContexts, getCommand, getConstraints, getDuration, getElapsedTime, getEndTime, getEquivalentContext, getExecType, getId, getJustification, getLogicalValue, getMaxTime, getNearestTerminatedAncestor, getNextStep, getNextStepForType, getParentContext, getRootContext, getStartTime, getStateMachine, getStatus, hasNormCheckingAncestor, isAsynchronous, isFailure, isSimulation, isSuccess, isTerminated, resetContext, resetCoreContext, setChildContexts, setConstraints, setEndTime, setExecType, setLogicalValue, setStartTime, setStateMachine, setStatus, setupNextStep, toString, waitForTermination, waitForTermination
-
Constructor Details
-
NormCheckingActionContext
public NormCheckingActionContext(Context caller, StateMachine sm, ActionDBEntry action, List<? extends Object> arguments, Symbol actor) -
NormCheckingActionContext
public NormCheckingActionContext(Context caller, StateMachine sm, ActionDBEntry action, Map<String, Object> bindings, ExecutionType executionType, Symbol actor)
-
-
Method Details
-
doStep
public void doStep()Description copied from class:ActionContext
Executes the action corresponding to this context. If the action is a script, then this step initializes each of the steps in the script. If the action is a primitive, then it executes that action.- Overrides:
doStep
in classActionContext
-
checkViolations
public boolean checkViolations()
-