All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.arcsinc.hardwarehost.datamgmt.HostDataMgrImpl

java.lang.Object
   |
   +----com.arcsinc.hardwarehost.datamgmt.HostDataMgrImpl

public class HostDataMgrImpl
extends Object
implements Runnable, HdwListener, HostDataMgr
The HostDataMgrImpl class provides the data management coordination for the host. Although not a requirement, it is best that there is only one instance of this class for a given host.

See Also:
DataClient, HdwListenerHdwListener, HostDataMgr

Constructor Index

 o HostDataMgrImpl(HdwMgrImpl, HdwCommImpl)
The standard constructor.

Method Indexethod Index">

 o addClient(DataClient)
Registers a DataClient to receive on-line data.
 o addExtVarsToList(Vector, String)
 o getAvailParams()
Returns a Vector of ExtVariableSpec with the available parameters within the current application.
 o getIndex(String, String[])
Helper function to find the index of findName in a listNames[]
 o hdwStateChanged(HdwEvent)
Required function per HdwListener interface.
 o insertSpecIntoMaster(ExtVariableSpec)
Adds a symbol into the masterbol into the master list of available symbols
 o loadExternVariables()
 o notifyAppStart()
This function is called by hdwStateChanged() when the current application is started.
 o notifyAppStop()
This function is called by hdwStateChanged() when the current application is stopped for any reason.
 o notifyCoffChange(SymTableFilter)
This function is called by hdwStateChanged() when the current application is changed or updated.
 o removeClient(DataClient)
Unregisters a DataClient.
 o removeExtVarsFromList(Vector, String, Vector)
 o removeOneExtVarFromList(String, String, Vector, Vector)
 o run()
Pulls data from the hardware, called by this.
 o updateExternVariables(SymTableFilter)
Reconsiles the previous available symbols with the new available symbols.

Constructors

 o HostDataMgrImpl
 public HostDataMgrImpl(HdwMgrImpl owner,
                        HdwCommImpl hdwComm)
The standard constructor.

Parameters:
owner - the hardware manager that contains this instance
hdwComm - the communicadd> hdwComm - the communication object which connects to the hardware and its applications.

Methods

 o addClient
 public ClientDataMgr addClient(DataClient dc)
Registers a DataClient to receive on-line data. The implementation must create and return a ClientDataMgr. The control and data exchange is between the registered client and the created manager.

Parameters:
dc - the DataClient to be registered.
Returns:
the client's dedicated manager.
 o removeClient
 public void removeClient(DataClient dc)
Unregisters a DataClient. The implementation should dispose of the dedicated ClientDataMgr.

Parameters: Parameters:
dc - the DataClient to be unregistered.
 o getAvailParams
 public Vector getAvailParams()
Returns a Vectcode>Vector of ExtVariableSpec with the available parameters within the current application.

Returns:
a Vector of available parameters.
 o hdwStateChanged
 public void hdwStateChanged(HdwEvent e)
Required function per HdwListener interface. The HdwEvent is used to determine when data should and should not be pulled from the hardware and when to update the available symbols.

Parameters:
e - the HdwEvent
 o run
 public void run()
Pulls data from the hardware, called by this.

 o notifyCoffChange
 public boolean notifyCoffChange(SymTableFilter newFilter)
This function is ca>
This function is called by hdwStateChanged() when the current application is changed or updated.

Parameters:
newFilter - the SymTableFilter for the updated/changed current application
Returns:
false
 o notifyAppStart
 protected boolean notifyAppStart()
This function is called by hdwStateChanged() when the current a the current application is started. This function initiates pulling data from the hardware application and starts all of the client data managers to get their required data from this.

Returns:
true
 o notifyAppStop
 protected boolean notifyAppStop()
This function is called by hdwStateChanged() when the current application is stopped for any reason. This function stops pulling data from the hardware application

Returns:
true
 o updateExternVariables
 protected void updateExternVariables(SymTableFilter newFilter)
Reconsiles the previous available symbols with the new available symbols.

Parameters:
newFilter - the new SymTableFilter
 o insertSpecIntoMaster
 protected void insertSpecIntoMaster(ExtVariableSpec spec)
Adds a symbol into the master list of available symbols

Parameters:
spec - symbol to be added
 o getIndex
 protected int getIndex(String findName,
ring findName,
                        String listNames[])
Helper function to find the index of findName in a listNames[]

Parameters:
findName - a String to find.
listNames - a String[] to search in.
Returns:
the index or -1 if not found.
 o loadExternVariables
 protected void loadExternVariables()
 o addExtVarsToList
 protected void addExtVarsToList(Vector paramList,
                                 String module)
 o removeExtVarsFromList
 protected void removeExtVarsFromList(Vector removeList,
                                      String module,
                                      Vector addList)
 o removeOneExtVarFromList
 protected void removeOneExtVarFromList(String module,
                                        String name,
                                        Vector removeList,
                                        Vector addList)

All Packages  Class Hierarchy  This Package  Previop_">Previous  Next  Index
>