|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.jack.jak.logic.Signature
This class is used to store an applicable instance of a plan in both the applicable and failure sets. It contains all the information for:
1) re-establishing the instance to enable it to run 2) comparing to instances of the same plan to determine if they are (logically) equivilent
Constructor Summary | |
Signature()
|
Method Summary | |
Event |
getEvent()
Returns the event for which this Signature was created. |
PlanInstanceInfo |
getInfo()
|
Variable |
getLogicalVariable(int i)
|
Plan |
getPlan()
Returns the plan factory. |
java.lang.String |
getPlanName()
Gets the name of the Plan , as a fully qualified Java class
name. |
Unifiable |
getValueOf(Variable v)
|
java.lang.Object |
getVariable(int n)
Gets the numbered Plan variable. |
java.lang.Object |
getVariable(java.lang.String name)
Gets the named Plan variable. |
java.lang.String |
getVariableValue(int n)
Converts the value of the numbered variable to a String as if it had been appended to "". |
java.lang.String |
getVariableValue(java.lang.String name)
Converts the value of the named variable to a String as if it had been appended to "". |
int |
hashCode()
NOTE: the hashcode is only computed when first requested and is never recomputed for purposes of efficiency. |
boolean |
isSame(aos.jack.jak.trace.PlanIntrospection that)
Tests if the underlying object represents the same Plan instance as this one. |
static Signature |
newSignature(int log)
|
static Signature |
newSignature(Plan p,
Plan sen,
Event e,
aos.jack.jak.logic.ChoicePoint cp)
Gets a new signature out of of the Signature pool, giving it a choicepoint. |
static Signature |
newSignature(Variable[] vars)
|
void |
remove()
|
java.lang.String |
toString()
Produce a string representing the binding set. |
java.lang.String[] |
variableNames()
Gets a String array of the names of the Object's variables. |
java.lang.String[] |
variableTypes()
Gets a String array of the type names of the Object's variables. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Signature()
Method Detail |
public Plan getPlan()
public Event getEvent()
public PlanInstanceInfo getInfo()
public Unifiable getValueOf(Variable v)
public java.lang.String[] variableNames()
getValue
.
public java.lang.String[] variableTypes()
variableNames
.
public java.lang.String getVariableValue(int n)
public java.lang.String getVariableValue(java.lang.String name)
public java.lang.Object getVariable(int n)
java.lang.IndexOutOfBoundsException
- if the variable does not exist.public java.lang.Object getVariable(java.lang.String name)
java.lang.IllegalArgumentException
- if the variable does not exist.public java.lang.String getPlanName()
Plan
, as a fully qualified Java class
name.
Plan
public boolean isSame(aos.jack.jak.trace.PlanIntrospection that)
For a Plan
, no other Object
is the same.
It's only the same as itself.
this
and that
represent the
same Plan
instancepublic int hashCode()
public Variable getLogicalVariable(int i)
public java.lang.String toString()
public static Signature newSignature(int log)
public static Signature newSignature(Variable[] vars)
public static Signature newSignature(Plan p, Plan sen, Event e, aos.jack.jak.logic.ChoicePoint cp)
public void remove()
|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.