jasi.sim.user.table
Class SimValueConditionTree.Line

java.lang.Object
  extended by jasi.sim.user.table.SimValueConditionTree.Line
Enclosing class:
SimValueConditionTree

public static final class SimValueConditionTree.Line
extends java.lang.Object

Line in a condition table.


Constructor Summary
SimValueConditionTree.Line()
          Create a line.
SimValueConditionTree.Line(SimValue[] keys, SimValue[] values)
          Create a line.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates, whether some other object is "equal to" this one.
 SimValue getKey(int part)
          Get key.
 SimValue[] getKeys()
          Get a copy of keys.
 SimValue[] getValues()
          Get a copy of this values.
 SimValue getValues(int part)
          Get value.
 int hashCode()
          Returns the hash code value for this assignable object.
 void setKeys(int part, SimValue key)
          Set key of a given index.
 void setKeys(SimValue[] keys)
          Set the keys of this table.
 void setValues(int part, SimValue value)
          Set value.
 void setValues(SimValue[] values)
          Set the values.
 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

SimValueConditionTree.Line

public SimValueConditionTree.Line()
Create a line.


SimValueConditionTree.Line

public SimValueConditionTree.Line(SimValue[] keys,
                                  SimValue[] values)
Create a line.

Parameters:
keys - The keys.
values - The values.
Method Detail

setKeys

public void setKeys(SimValue[] keys)
Set the keys of this table.

Parameters:
keys - The keys.

setKeys

public void setKeys(int part,
                    SimValue key)
Set key of a given index.

Parameters:
part - The index.
key - The key.

getKeys

public SimValue[] getKeys()
Get a copy of keys.

Returns:
The keys.

getKey

public SimValue getKey(int part)
Get key.

Parameters:
part - The index.
Returns:
The key.

setValues

public void setValues(SimValue[] values)
Set the values.

Parameters:
values - The values.

setValues

public void setValues(int part,
                      SimValue value)
Set value.

Parameters:
part - The index.
value - The value.

getValues

public SimValue[] getValues()
Get a copy of this values.

Returns:
The values.

getValues

public SimValue getValues(int part)
Get value.

Parameters:
part - The index.
Returns:
The value.

toString

public java.lang.String toString()
Returns a string representation of this table.

Overrides:
toString in class java.lang.Object
Returns:
The string.

hashCode

public int hashCode()
Returns the hash code value for this assignable object. The hash code of a assignable object is defined to be the hashCode of the enclose value of the object, which implements the ConditionType interface. This ensures that t1.equals(t2) implies that t1.hashCode()==t2.hashCode() for any two objects t1 and t2, as required by the general contract of Object.hashCode.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code value for this object.

equals

public boolean equals(java.lang.Object o)
Indicates, whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - That object which is compared with this object.
Returns:
True, if this object is the same as that object.