jasi.sim.basic.table
Class Tables

java.lang.Object
  extended by jasi.sim.basic.table.Tables
All Implemented Interfaces:
java.io.Serializable

public final class Tables
extends java.lang.Object
implements java.io.Serializable

Management class of condition tables.

See Also:
Serialized Form

Constructor Summary
Tables()
          Constructor.
 
Method Summary
 void add(ConditionTree tree)
          Add a table to the table list.
 void clear()
          Remove all already defined tables.
 boolean contains(java.lang.String name)
          Check, if list of tables already contains a table with that name.
 ConditionTree get(java.lang.String name)
          Get an already defined table by it's name.
 java.util.Collection<ConditionTree> getList()
          Get a list of all currently defined tables.
 ConditionTree remove(java.lang.String name)
          Remove an already defined table by it's ID.
 int size()
          Get the number of tables.
 java.lang.String toString()
          List all currently defined tables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tables

public Tables()
Constructor.

Method Detail

add

public void add(ConditionTree tree)
Add a table to the table list.

Parameters:
tree - The table to be added.

get

public ConditionTree get(java.lang.String name)
Get an already defined table by it's name.

Parameters:
name - The table name.
Returns:
The table.

remove

public ConditionTree remove(java.lang.String name)
Remove an already defined table by it's ID.

Parameters:
name - The table name.
Returns:
The removed table or or null, if there was no mapping for the ID.

clear

public void clear()
Remove all already defined tables.


getList

public java.util.Collection<ConditionTree> getList()
Get a list of all currently defined tables.

Returns:
The list of tables.

contains

public boolean contains(java.lang.String name)
Check, if list of tables already contains a table with that name.

Parameters:
name - That table's name.
Returns:
True, if table is in list of tables.

size

public int size()
Get the number of tables.

Returns:
The number.

toString

public java.lang.String toString()
List all currently defined tables.

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