|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.logic.SubstitutionSet
public class SubstitutionSet
A substitution set provides a mapping from AFME variable to first order structure instances.
| Constructor Summary | |
|---|---|
SubstitutionSet(BelSeq bSeq)
Constructs a substitution set for a belief sequence. |
|
| Method Summary | |
|---|---|
void |
add(FOS f1,
FOS f2)
Adds a mapping between a variable and a first order structure instance. |
void |
clear()
Clears state back to the previous execution of the construct(SubstitutionSet) method,
or all elements if called from wipe(). |
boolean |
construct(SubstitutionSet ss)
Adds the contents of the specified substitution set to this substitution set. |
SubstitutionSet |
copy()
Creates a copy of the substitution set. |
void |
createSolution(Agent agent,
FOS f1,
FOS f2)
Recursively creates solutions using the agent object for the specified first order structures. |
FOS |
replaceVar(FOS var)
Returns an instance for the specified variable. |
void |
wipe()
Removes all currently stored mappings. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubstitutionSet(BelSeq bSeq)
bSeq - the specified belief sequence.| Method Detail |
|---|
public SubstitutionSet copy()
public boolean construct(SubstitutionSet ss)
ss - the specified substitution set.
public void createSolution(Agent agent,
FOS f1,
FOS f2)
throws MalformedLogicException
agent - the agent used in the creation of a solution.f1 - a first order structure condition.f2 - a current belief matching the condition.
MalformedLogicException - if there is a logic error.public void wipe()
public void clear()
construct(SubstitutionSet) method,
or all elements if called from wipe().
public FOS replaceVar(FOS var)
var - the variable to be replaced.
public void add(FOS f1,
FOS f2)
f1 - the variable.f2 - the first order structure instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||