public class ActionFeaturesQuery
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<StateFeature> |
features
The list of state features associated with this action.
|
GroundedAction |
queryAction
The action with which the state features are associated
|
Constructor and Description |
---|
ActionFeaturesQuery(GroundedAction queryAction)
Initializes with an empty list of state features
|
ActionFeaturesQuery(GroundedAction queryAction,
java.util.List<StateFeature> features)
Initializes
|
Modifier and Type | Method and Description |
---|---|
void |
addFeature(StateFeature sf)
Adds a state feature to be associate with this objects action
|
boolean |
featuresForQuery(GroundedAction ga)
Indicates whether this association is for a given action.
|
static ActionFeaturesQuery |
getActionFeaturesForQueryFromSet(GroundedAction query,
java.util.List<ActionFeaturesQuery> actionFeaturesSets)
Returns the
ActionFeaturesQuery object from a list of ActionFeaturesQuery objects that is associated with a given action. |
public GroundedAction queryAction
public java.util.List<StateFeature> features
public ActionFeaturesQuery(GroundedAction queryAction)
queryAction
- the action with which state features will be associatedpublic ActionFeaturesQuery(GroundedAction queryAction, java.util.List<StateFeature> features)
queryAction
- the action with which state features are associatedfeatures
- the list of state features associated with this action.public void addFeature(StateFeature sf)
sf
- the state feature to addpublic boolean featuresForQuery(GroundedAction ga)
ga
- a given action to check againstpublic static ActionFeaturesQuery getActionFeaturesForQueryFromSet(GroundedAction query, java.util.List<ActionFeaturesQuery> actionFeaturesSets)
ActionFeaturesQuery
object from a list of ActionFeaturesQuery
objects that is associated with a given action.query
- the query action to find the ActionFeaturesQuery
foractionFeaturesSets
- the list of ActionFeaturesQuery
objects to searchActionFeaturesQuery
object that is associated with a given action. Null if it does not exist in the list.