|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.logic.TerImplication
public class TerImplication
TerImplication objects represent commitment rules. A commitment rule comprises a belief sentence, a commitment, and resource constraints.
| Field Summary | |
|---|---|
static char |
APOS
|
| Constructor Summary | |
|---|---|
TerImplication(java.lang.String string,
BelSeq bs)
Constructs a TerImplication from the specified string representation of the commitment and belief sequence. |
|
| Method Summary | |
|---|---|
void |
append(java.lang.StringBuffer buffer)
Appends a string representation of the commitment to the specified string buffer. |
TerImplication |
createAppliedRule(SubstitutionSet sub)
Creates a TerImplication by appling the substitution set to the belief sequence and commitment of the rule. |
void |
seqClear()
Clears the belief sequence of previously stored data. |
void |
solve(Agent agent)
Creates a commitment for each binding in which the belief sentence of the rule evaluates to true. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char APOS
| Constructor Detail |
|---|
public TerImplication(java.lang.String string,
BelSeq bs)
throws MalformedLogicException
string - a string representation of the commitment.bs - the specified belief sequence.
MalformedLogicException - if there is a logic error.| Method Detail |
|---|
public void seqClear()
public void solve(Agent agent)
throws MalformedLogicException
agent - the agent that the commitment rule belongs to.
MalformedLogicException - if there is a logic error.
public TerImplication createAppliedRule(SubstitutionSet sub)
throws MalformedLogicException
sub - the specified substitution set.
MalformedLogicException - if there is a logic error.public void append(java.lang.StringBuffer buffer)
buffer - the specified string buffer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||