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, variableFields 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 TypeMethodDescriptionbooleanvoiddoStep()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, isAction, isApproved, isScript, performAdditionalStatusUpdates, releaseLocks, resetConcreteContext, setExecType, setStartTime, setStatus, setTimeout, setupNextStep, startOverAllMonitor, updateAffect, updatePerformanceModels, verifyEffects, verifyReturnValueMethods inherited from class edu.tufts.hrilab.action.execution.DatabaseEntryContext
addArgument, addVarArgArgument, collectArguments, getDBE, getSignatureInPredicateForm, setArgument, setDBE, setupArguments, setupArgumentsMethods inherited from class edu.tufts.hrilab.action.execution.ArgumentBasedContext
addArgument, addArgument, bindPredicate, bindText, copyArguments, getArgument, getArguments, getArgumentSilent, getArgumentType, getArgumentValue, getEvaluatedArgument, getLocalArgument, hasArgumentInScope, hasLocalArgument, redistributeArguments, setArgumentMethods 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:ActionContextExecutes 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:
doStepin classActionContext
-
checkViolations
public boolean checkViolations()
-