public abstract class DPostDeclaration extends Object
Modifier and Type | Field and Description |
---|---|
protected Clause |
body |
protected SimpleSentence |
event |
protected SimpleSentence |
fluent |
Modifier | Constructor and Description |
---|---|
protected |
DPostDeclaration(SimpleSentence event,
SimpleSentence fluent)
Constructor of the object.
|
protected |
DPostDeclaration(SimpleSentence event,
SimpleSentence fluent,
Clause body)
Constructor of the object.
|
Modifier and Type | Method and Description |
---|---|
SimpleSentence |
getEvent()
Gets the event of the declaration.
|
SimpleSentence |
getFluent()
Gets the fluent of the declaration.
|
SimpleSentence |
getGroundFluent(SimpleSentence event,
RuleSet rules)
Gets the bound fluent according to the bindings of the specified event.
|
protected SimpleSentence event
protected SimpleSentence fluent
protected Clause body
protected DPostDeclaration(SimpleSentence event, SimpleSentence fluent)
event
- is the general form of event (with often free variables).fluent
- is also the general form fluent. It is the terminated or
created by the event.protected DPostDeclaration(SimpleSentence event, SimpleSentence fluent, Clause body)
event
- is the general form of event (with often free variables).fluent
- is also the general form fluent. It is the terminated or
created by the event.body
- is the body of the postcondition.public SimpleSentence getEvent()
public SimpleSentence getFluent()
public SimpleSentence getGroundFluent(SimpleSentence event, RuleSet rules)
This method is used to apply certain values to the variable of the event and to pass these values to the fluent.
event
- that is bound and corresponds to this declaration.rules
- the database.