cz.cuni.pogamut.Client
Class KnownObjects

java.lang.Object
  extended by cz.cuni.pogamut.Client.KnownObjects

public class KnownObjects
extends java.lang.Object

KnownObjects store messages necessary for multiple uses


Field Summary
private  java.util.HashMap<java.lang.Integer,MessageObject> knownObjects
           
 
Constructor Summary
KnownObjects()
           
 
Method Summary
 void addObject(MessageObject newObject)
          adds object to structure
 boolean contains(int ID)
          indetifies whether knownObjects contains object with specified ID
 MessageObject getObject(int ID)
          get object from structure
 java.util.ArrayList<MessageObject> getObjectsOfType(MessageType type)
          Don't use it very often, it is VERY inefficient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

knownObjects

private java.util.HashMap<java.lang.Integer,MessageObject> knownObjects
Constructor Detail

KnownObjects

public KnownObjects()
Method Detail

addObject

public void addObject(MessageObject newObject)
adds object to structure

Parameters:
newObject -

getObject

public MessageObject getObject(int ID)
get object from structure

Parameters:
ID -
Returns:
object of supplied ID

contains

public boolean contains(int ID)
indetifies whether knownObjects contains object with specified ID

Parameters:
ID -
Returns:
true if it contains object with supplied ID

getObjectsOfType

public java.util.ArrayList<MessageObject> getObjectsOfType(MessageType type)
Don't use it very often, it is VERY inefficient

Parameters:
type -
Returns:
objects of specified type