Package fr.uga.pddl4j.parser
Class ParsedAction
java.lang.Object
fr.uga.pddl4j.parser.AbstractParsedObject
fr.uga.pddl4j.parser.ParsedAbstractOperator
fr.uga.pddl4j.parser.ParsedAction
- All Implemented Interfaces:
ParsedObject
,ParsedOperator
,Serializable
This class implements a planning operator parsed.
Modifications:
- Add method normalize(int i) - 11.12.2012.
- Add constructor of copy - 11.12.2012.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from interface fr.uga.pddl4j.parser.ParsedObject
DEFAULT_BEGIN_LINE, DEFAULT_BEGING_COLUMN, DEFAULT_END_COLUMN, DEFAULT_END_LINE
-
Constructor Summary
ConstructorDescriptionParsedAction(ParsedAction other)
Create a new operator from another.ParsedAction(Symbol<String> name, List<TypedSymbol<String>> parameters, Expression<String> preconds, Expression<String> effects)
Creates operator with a specified name, list of parameters, preconditions and effects.ParsedAction(Symbol<String> name, List<TypedSymbol<String>> parameters, Expression<String> preconditions, Expression<String> effects, Expression<String> duration)
Creates operator with a specified name, list of parameters, preconditions and effects. -
Method Summary
Modifier and TypeMethodDescriptionReturns the goal description that represents the effects of the operator.void
setEffects(Expression<String> effects)
Sets new effects to the operator.toString()
Returns a PDDL string representation of the operator.Methods inherited from class fr.uga.pddl4j.parser.ParsedAbstractOperator
equals, getArity, getDuration, getName, getParameter, getParameters, getPreconditions, hashCode, isDurative, setDuration, setName, setParameters, setPreconditions, toTask
Methods inherited from class fr.uga.pddl4j.parser.AbstractParsedObject
getBeginColumn, getBeginLine, getEndColumn, getEndLine, setBegin, setBeginColumn, setBeginLine, setEnd, setEndColumn, setEndLine
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface fr.uga.pddl4j.parser.ParsedObject
getBeginColumn, getBeginLine, getEndColumn, getEndLine, setBegin, setBeginColumn, setBeginLine, setEnd, setEndColumn, setEndLine
-
Constructor Details
-
ParsedAction
Create a new operator from another.- Parameters:
other
- the other operator.
-
ParsedAction
public ParsedAction(Symbol<String> name, List<TypedSymbol<String>> parameters, Expression<String> preconds, Expression<String> effects)Creates operator with a specified name, list of parameters, preconditions and effects.- Parameters:
name
- The name of the operator.parameters
- The list of parameters of the operator.preconds
- The goal description that represents the preconditions of the operator.effects
- The goal description that represents the effects of the operator.
-
ParsedAction
public ParsedAction(Symbol<String> name, List<TypedSymbol<String>> parameters, Expression<String> preconditions, Expression<String> effects, Expression<String> duration)Creates operator with a specified name, list of parameters, preconditions and effects.- Parameters:
name
- The name of the operator.parameters
- The list of parameters of the operator.preconditions
- The goal description that represents the preconditions of the operator.effects
- The goal description that represents the effects of the operator.duration
- The description that represents the duration constraints of the operator.- Throws:
NullPointerException
- if the specified name, parameters, preconditions or effects are null.
-
-
Method Details
-
getEffects
Returns the goal description that represents the effects of the operator.- Returns:
- The goal description that represents the effects of the operator.
-
setEffects
Sets new effects to the operator.- Parameters:
effects
- he new goal description that represents the effects of the operator to set.- Throws:
NullPointerException
- if the specified effects is null.
-
toString
Returns a PDDL string representation of the operator.
-