eu.xtreemos.xosd.localallocmgr.frontend
Class ResourceDirectory

java.lang.Object
  extended by eu.xtreemos.xosd.localallocmgr.frontend.ResourceDirectory

public class ResourceDirectory
extends java.lang.Object


Field Summary
(package private)  java.util.Hashtable<java.lang.String,ResourceProperties> properties
           
(package private)  java.util.Hashtable<java.lang.String,TimeTable> resources
           
 
Constructor Summary
ResourceDirectory()
           
 
Method Summary
 void addPropertyFor(java.lang.String resourceID, IResourceProperty prop)
           
 void addResource(java.lang.String resourceID)
           
 ResourceProperties getPropertiesFor(java.lang.String resourceID)
           
 java.util.ArrayList<java.lang.String> getResources()
          Returns an array of all resources registered in the directory.
 TimeTable getTimeTableFor(java.lang.String resourceID)
           
 boolean hasResource(java.lang.String resourceID)
           
 void removeReousce(java.lang.String resourceID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

java.util.Hashtable<java.lang.String,TimeTable> resources

properties

java.util.Hashtable<java.lang.String,ResourceProperties> properties
Constructor Detail

ResourceDirectory

public ResourceDirectory()
Method Detail

addResource

public void addResource(java.lang.String resourceID)

removeReousce

public void removeReousce(java.lang.String resourceID)

hasResource

public boolean hasResource(java.lang.String resourceID)

getResources

public java.util.ArrayList<java.lang.String> getResources()
Returns an array of all resources registered in the directory. Not returning the set, since it allows manipulation of the hashtable ...

Returns:

getTimeTableFor

public TimeTable getTimeTableFor(java.lang.String resourceID)

getPropertiesFor

public ResourceProperties getPropertiesFor(java.lang.String resourceID)

addPropertyFor

public void addPropertyFor(java.lang.String resourceID,
                           IResourceProperty prop)