Class Justification
java.lang.Object
edu.tufts.hrilab.action.justification.Justification
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AndJustification
,ConditionJustification
,OrJustification
Justification why a context has specific status
only stored for single status
getFailedPredicates, get predicates contributing to failure of context
getBindings, get bindings for predicates
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get all the possible bindings for each condition within the justificationgetBindings
(Variable arg) Get the bindings for a specific argumentGet the conditions which do not hold.Get the bindings for the failed conditions.Get the conditions which hold in the environment, but cause the failure.Get the entire list of conditions within the justificationgetStep()
final boolean
getValue()
void
final void
setValue
(boolean value)
-
Constructor Details
-
Justification
public Justification() -
Justification
public Justification(boolean val)
-
-
Method Details
-
getValue
public final boolean getValue() -
setValue
public final void setValue(boolean value) -
getStep
-
setStep
-
getPredicates
Get the entire list of conditions within the justification- Returns:
- list of conditions
-
getBindings
Get all the possible bindings for each condition within the justification- Returns:
- list of the bindings for each condition
-
getFailedConditions
Get the conditions which do not hold. This will attempt to bind any free-variables in the failed conditions in the returned values. If multiple binding options exist, a single condition can produce multiple bound conditions.- Returns:
- list of failed predicates
-
getFailureReason
Get the conditions which hold in the environment, but cause the failure. This will attempt to bind any free-variables in the failed conditions in the returned values. If multiple binding options exist, a single condition can produce multiple bound conditions.- Returns:
- list of predicates which hold in the environment
-
getFailureBindings
Get the bindings for the failed conditions.- Returns:
- list of the bindings for each failed condition
-
getBindings
Get the bindings for a specific argument- Parameters:
arg
- the arg to find bindings for- Returns:
- set of bindings for the argument
-
equals
-