|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jasi.sim.basic.table.ConditionTree
public final class ConditionTree
A condition table, that allows to retrieve values from a set of conditions based on an if-then-else structure. The conditions are represented by key-value-pairs. The condition table provides the ability to enter values for a default key. This value will be retrieved, if another key will not fit.
Nested Class Summary | |
---|---|
static class |
ConditionTree.Line
Line in a condition table. |
Constructor Summary | |
---|---|
ConditionTree()
Table constructor. |
|
ConditionTree(java.lang.String name)
Table constructor. |
Method Summary | |
---|---|
void |
addLine(java.lang.Object values)
Add a condition line to this table. |
void |
addLine(java.lang.Object[] values)
Add a condition line to this table. |
void |
addLine(java.lang.Object[] keys,
java.lang.Object values)
Add a condition line to this table. |
void |
addLine(java.lang.Object[] keys,
java.lang.Object[] values)
Add a condition line to this table. |
void |
addLine(java.lang.Object keys,
java.lang.Object values)
Add a condition line to this table. |
void |
addLine(java.lang.Object keys,
java.lang.Object[] values)
Add a condition line to this table. |
boolean |
equals(java.lang.Object o)
Indicates, whether some other object is "equal to" this one. |
java.lang.Object[] |
find(java.lang.Object[] keys)
Find the value for a key. |
java.util.List<ConditionTree.Line> |
getLines()
Get the lines of this table. |
java.lang.String |
getName()
Get this table's ID. |
int |
hashCode()
Returns the hash code value for this assignable object. |
void |
setLines(java.util.List<ConditionTree.Line> lines)
Set the lines of this table. |
void |
setName(java.lang.String name)
Set this table's ID. |
java.lang.String |
toString()
Returns a string representation of this table. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConditionTree()
public ConditionTree(java.lang.String name)
name
- The name of table as identifier.Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The ID.public void setLines(java.util.List<ConditionTree.Line> lines)
lines
- The lines.public java.util.List<ConditionTree.Line> getLines()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- That object which is compared with this object.
public void addLine(java.lang.Object values)
values
- The values.public void addLine(java.lang.Object[] values)
values
- The values.public void addLine(java.lang.Object keys, java.lang.Object values)
keys
- The keys.values
- The values.public void addLine(java.lang.Object[] keys, java.lang.Object values)
keys
- The keys.values
- The values.public void addLine(java.lang.Object keys, java.lang.Object[] values)
keys
- The keys.values
- The values.public void addLine(java.lang.Object[] keys, java.lang.Object[] values)
keys
- The keys.values
- The values.public java.lang.Object[] find(java.lang.Object[] keys)
keys
- The key.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |