All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class uhr.core.cell.CellDK

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

public class CellDK
extends Object
implements ServiceClient, PartUser, NodeUser, ParamDriven, Replicatable
This class has a cell's DK. Changes to the DK cause commands to other core parts, such as to add parts, provide part dk and do connections. Incremental changes to the DK are supported to better allow live systen editing. For example if this class receives a new set of Cell DK where only one part has bee added, it handles just the one part added.

Minor responsibilities are to handle start_commands itself.

***** TODO - Need to convert two more references from PartUser to ClientNeed. Then we can remove PartUser from this class.

We could make this a configurable model for any DK, but that is beyond our minimum essential requirements. :-)

The format for Container DK is best explained by this example with two parts.





LogonWindow
uhr.parts.ui.Window


SecurityDataReader
uhr.parts.io.FileReader
url for dk here
service, hidden




LogonWindow
SecurityDataReader
test.TestServiceA




INTEREST_IN
GetUserData
SecurityDataReader


SIGNAL_OUT
WindowOpened
LogonWindow


DIRECT
GetSecurityLevel
LogonWindow
SecurityDataReader




Store
Test

         

 


Variable Index

 o APPEND_PART
These constants are published to allows the NodeCreator to create a proper CellDK builder part.
 o CHECK_NEEDS
 o CHECK_PART_DK
 o LINK_CLIENT_HOST

Constructor Index

 o CellDK()

Method Index

 o getParamDrivenAide()
Returns the aide-de-camp for the ParamDriven.
 o getPartNamesNeeded()
Returns an array of the part names this part needs to do its work.
 o getServiceClientAide()
Returns the aide handling the ServiceClient's attractor work.
 o replicate()
Returns a copy of itself without mission state.
 o setDK(Object)
Sets the DK describing the part's mission.
 o setMyNode(Node)
Sets the node the part is in.
 o setPart(String, Object)
Sets a named part, in response to part needs.
 o setServiceNeeded(ServiceNeed, Object)
Sets the service provided by a host and identifed by the serviceID.
 o start()
 o start_AddParts()
 o start_DoRemainder()

Variables

 o APPEND_PART
 public final ServiceNeed APPEND_PART
These constants are published to allows the NodeCreator to create a proper CellDK builder part. Normally these constants are unpublished.

 o CHECK_NEEDS
 public final ServiceNeed CHECK_NEEDS
 o CHECK_PART_DK
 public final ServiceNeed CHECK_PART_DK
 o LINK_CLIENT_HOST
 public final ServiceNeed LINK_CLIENT_HOST

Constructors

 o CellDK
 public CellDK()

Methods

 o getServiceClientAide
 public ServiceClientAide getServiceClientAide()
Returns the aide handling the ServiceClient's attractor work. My ServiceNeeds are:
   Type:      uhr.uniface.UF_void
   ServiceID: uhr.core.attract.CheckClientNeeds
   Type:      uhr.uniface.UF_void_Flexitron
   ServiceID: uhr.core.AppendPartWithPartDef
   Type:      uhr.uniface.UF_void_Flexitron_Container
   ServiceID: uhr.core.dk.CheckPart
   Type:      uhr.uniface.UF_void_Flexitron_Container
   ServiceID: uhr.core.attract.LinkClientHost
 

Returns:
the aide.
 o setServiceNeeded
 public void setServiceNeeded(ServiceNeed need,
                              Object service)
Sets the service provided by a host and identifed by the serviceID.

Parameters:
need - the need that described the service.
service - the attracted service.
 o getPartNamesNeeded
 public String[] getPartNamesNeeded()
Returns an array of the part names this part needs to do its work. These are "core.ConnectionRegistry", "core.MessageRouter".

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 setMyNode
 public void setMyNode(Node node)
Sets the node the part is in.

 o getParamDrivenAide
 public ParamDrivenAide getParamDrivenAide()
Returns the aide-de-camp for the ParamDriven.

Returns:
the ParamDriven aide.
 o setDK
 public void setDK(Object dk)
Sets the DK describing the part's mission.

Parameters:
param - the data structure containing the DK.
 o replicate
 public Object replicate()
Returns a copy of itself without mission state.

Returns:
the replication.
 o start_AddParts
 public void start_AddParts()
 o start_DoRemainder
 public void start_DoRemainder()
 o start
 public void start()

All Packages  Class Hierarchy  This Package  Previous  Next  Index