edu.UCL.satin.arch.lmu
Interface LMU

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
HashLMU

public interface LMU
extends java.io.Serializable

LMU.java The interface of a Logical Mobility Unit. Created: Mon Mar 1 20:10:28 2004

Author:
Stefanos Zachariadis

Method Summary
 void addAttribute(GenericAttribute attr)
          Adds an attribute to the lmu
 void addClass(java.lang.Class c)
          Adds a class to the current lmu.
 void addComponent(Component c)
          Adds a new component to the LMU
 void addData(java.lang.Object d)
          Adds data to the lmu
 void addHandler(Handler h)
          Adds a Handler to the lmu
 void addObject(java.lang.Object o)
          Adds an Object to the current lmu.
 GenericAttribute getAttribute(java.lang.Object key)
          Returns an attribute from the lmu
 java.util.Enumeration getClasses()
          Returns the classes stored in this lmu
 java.util.Enumeration getComponents()
          Returns the components stored in this lmu.
 java.util.Enumeration getData()
          Returns the data stored in this lmu
 Handler getHandler()
          Returns the Handler for this lmu
 java.util.Enumeration getObjects()
          Returns the objects stored in this lmu
 java.util.Enumeration getProperties()
          Returns the properties of this lmu
 boolean hasAttribute(java.lang.Object key)
          Checks whether the LMU has an attribute with the given key
 

Method Detail

addComponent

public void addComponent(Component c)
Adds a new component to the LMU

Parameters:
c - The component to add

addClass

public void addClass(java.lang.Class c)
Adds a class to the current lmu.

Parameters:
c - The class to add.

addObject

public void addObject(java.lang.Object o)
Adds an Object to the current lmu.

Parameters:
o - The object to add.

addData

public void addData(java.lang.Object d)
Adds data to the lmu

Parameters:
d - the data to add

addHandler

public void addHandler(Handler h)
Adds a Handler to the lmu

Parameters:
h - the Handler to add

addAttribute

public void addAttribute(GenericAttribute attr)
Adds an attribute to the lmu

Parameters:
attr - The attribute to add

getAttribute

public GenericAttribute getAttribute(java.lang.Object key)
Returns an attribute from the lmu

Parameters:
key - the key of the attribute
Returns:
the attribute that maps to the given key

getProperties

public java.util.Enumeration getProperties()
Returns the properties of this lmu

Returns:
The properties of this lmu

getHandler

public Handler getHandler()
Returns the Handler for this lmu

Returns:
the Handler, if it exists or null otherwise

getObjects

public java.util.Enumeration getObjects()
Returns the objects stored in this lmu

Returns:
the objects stored in this lmu as an enumeration

getClasses

public java.util.Enumeration getClasses()
Returns the classes stored in this lmu

Returns:
the classes stored in this lmu as an enumeration

getData

public java.util.Enumeration getData()
Returns the data stored in this lmu

Returns:
the data stored in this lmu as an enumeration

getComponents

public java.util.Enumeration getComponents()
Returns the components stored in this lmu.

Returns:
the components stored in this lmu

hasAttribute

public boolean hasAttribute(java.lang.Object key)
Checks whether the LMU has an attribute with the given key

Parameters:
key - The attribute key
Returns:
true if an attribute with the given key exists or false otherwise