All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class uhr.core.cell.PartRegistry

java.lang.Object
   |
   +----uhr.core.cell.PartRegistry

public class PartRegistry
extends Object
implements ServiceHost, UF_void_Flexitron, NodeUser, PartUser
This class manages the cell part collection mutations. This includes adding and removing parts. It excludes things associated with parts such as dk.


Constructor Index

 o PartRegistry()

Method Index

 o act(Flexitron)
This uniface is redirected to appendPart(Flexitron).
 o appendPart(Flexitron)
Creates and appends the part defined in partDef to this cell.
 o getPartNamesNeeded()
Returns an array of the part names this part needs to do its work.
 o getServiceHostAide()
Returns the aide handling the ServiceHost's attractor work.
 o setMyNode(Node)
Sets the node the part is in.
 o setPart(String, Object)
Sets a named part, in response to part needs.

Constructors

 o PartRegistry
 public PartRegistry()

Methods

 o getServiceHostAide
 public ServiceHostAide getServiceHostAide()
Returns the aide handling the ServiceHost's attractor work. My ServiceItems are:
   Type:      uhr.uniface.UF_void_Flexitron
   ServiceID: uhr.core.AppendPartWithPartDef
 

Returns:
the aide.
 o act
 public void act(Flexitron partDef)
This uniface is redirected to appendPart(Flexitron).

Parameters:
partDef - the part definition data.
 o setMyNode
 public void setMyNode(Node node)
Sets the node the part is in.

 o getPartNamesNeeded
 public String[] getPartNamesNeeded()
Returns an array of the part names this part needs to do its work. These are "core.NodeCreator".

Returns:
the names of the parts needed.
 o setPart
 public void setPart(String name,
                     Object part)
Sets a named part, in response to part needs. This implementation supports needed part replacement anytime. See the PartUser interface for further documentation.

Parameters:
name - the name of the needed part.
part - the needed part.
 o appendPart
 public void appendPart(Flexitron partDef)
Creates and appends the part defined in partDef to this cell. The Flexitron must contain data of this format example:
        SecurityDataReader
        uhr.parts.io.FileReader
 
Name and type are required. The name of the part must be unique to this cell. The type must be the class name of the part.

Parameters:
partDef - the part definition data.

All Packages  Class Hierarchy  This Package  Previous  Next  Index