Package edu.tufts.hrilab.action
Class ActionConstraints
java.lang.Object
edu.tufts.hrilab.action.ActionConstraints
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedAction(String type) voidaddAllowedActor(String actor) voidaddForbiddenAction(String type) voidfilterByConstraints(Set<ActionDBEntry> entries) voidremoveAllowedActor(String actor) verifyConstraints(ActionDBEntry action, List<Effect> effects, StateMachine sm) Verifies whether an action meets all the the constraints.verifyConstraints(ParameterizedAction action, StateMachine sm) Verifies whether an action selection meets all the the constraints.verifyConstraints(Predicate goal, StateMachine sm) Verifies whether a goal does not violate the constraints.
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
ActionConstraints
public ActionConstraints()
-
-
Method Details
-
addForbiddenAction
-
addAllowedAction
-
addForbiddenState
-
filterByConstraints
-
verifyConstraints
Verifies whether a goal does not violate the constraints.- Parameters:
goal- goal predicatesm- state machine- Returns:
- True if constraints are met
-
verifyConstraints
Verifies whether an action selection meets all the the constraints.- Parameters:
action- action selection to be checkedsm- state machine- Returns:
- True if constraints are met
-
verifyConstraints
Verifies whether an action meets all the the constraints.- Parameters:
action- actioneffects- effects of actionsm- state machine- Returns:
- True if constraints are met
-
getAllowedActors
-
addAllowedActor
-
removeAllowedActor
-
getForbiddenActors
-