|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jess.Binding
Binding binds variables to values; internally, also binds variables to slots in facts. Since it's just a bag of properties with no behaviour, member variables are public.
(C) 1997 E.J. Friedman-Hill and Sandia National Laboratories
Field Summary | |
int |
m_factIndex
The fact within a token where this variable should be loaded from. |
java.lang.String |
m_name
The name of the variable. |
int |
m_slotIndex
The slot within a fact where this variable should be loaded from. |
int |
m_subIndex
The subslot within a slot where this variable should be loaded from. |
int |
m_type
The type of the variable |
Value |
m_val
The value of the variable |
Constructor Summary | |
Binding(java.lang.String name,
int factIndex,
int slotIndex,
int subIndex,
int type)
Create a binding, setting initial values. |
|
Binding(java.lang.String name,
Value val)
Create a binding, bound to a Value. |
Method Summary | |
java.lang.Object |
clone()
Make a copy of the variable |
java.lang.String |
toString()
Produce a string representation of this object for debugging. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public java.lang.String m_name
public int m_factIndex
public int m_slotIndex
public int m_subIndex
public int m_type
public Value m_val
Constructor Detail |
public Binding(java.lang.String name, int factIndex, int slotIndex, int subIndex, int type)
name
- The name of the variable.factIndex
- Which fact in a token it is matched to.slotIndex
- Which slot in the fact.subIndex
- Which subslot in a multislot or -1type
- One of the type constants in jess.RU.public Binding(java.lang.String name, Value val) throws JessException
name
- The name of the variable.val
- The value of the variable.Method Detail |
public java.lang.Object clone()
public java.lang.String toString()
|
© 1997 E.J. Friedman-Hill and Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |