All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.arcsinc.hardwarehost.HdwMgrImpl

java.lang.Object
   |
   +----com.arcsinc.hardwarehost.HdwMgrImpl

public class HdwMgrImpl
extends Object
implements HdwMgr
The HdwMgrImpl class: An implementation of HdwMgr. The HdwMgr is tasked with:


Variable Index

 o dispatchGrp
 o listeners
The listeners is a Vector of registered objects which are to be notified when a HdwEvent is generated.
 o symTableFilter
The symTableFilter provides a "catalog" of the accessible symbols.

Constructor Index

 o HdwMgrImpl(HdwHostImpl)
Creates a HdwMgrImpl for a particular HdwHost object.

Method Index

 o addHdwListener(HdwListener)
Adds a HdwListener
 o addRemoteConnection(String, String)
 o downloadApp()
Download the current App to the hardware.
 o establishLinkage(Integer, ExtVariableSpec[])
 o finalize()
 o getAvailableApps()
Get a list of the available applications.
 o getControllerState()
Get the value of controllerState.
 o getCurrentApp()
Get the value of currentApp (name only).
 o getDataAcqMgr(DataAcqClient)
Gets a reference to the DataAcqMgr
 o getParams(Vector)
Get symbol value(s) in the application currently running on the controller.
 o getRemoteDataSpec(Integer)
 o getVerifyMessages(int, int)
Returns the appropriate message associated with a call to verifyComm().
 o isAppNameOpen(String)
Determine if an application is in the available list.
 o isCommWorking()
Determine if communications to the hardware is functioning.
 o pauseCntlr()
Command the App to suspend (pause) execution of the current App (Not yet implemented).
 o rebootHdw()
Force the hardware to reboot, including all actions leading to reboot.
 o registerApp(String, byte[], float)
Register an application in the available list.
 o removeAllRemoteConnections()
 o removeAllRemoteLinkages()
 o removeApp(String)
Remove an app.
 o rest.HdwListener)">removeHdwListener(HdwListener)
Removes a HdwListener
 o removeRemoteConnection(Integer)
 o resumeCntlr()
Command the App to resume execution (following a pauseCntlr () of the current App (Not yet implemented).
 o setAsynchronous(Integer)
 o setCurrentApp(String)
Set the value of currentApp.
 o setParams(Vector)
Set symbol(s) in the application currently running on the controller.
 o setSynchronous(Integer, ExtVariableSpec)
 o setupWorkingDirectory() ()
Creates the base working directory where all apps will be stored.
 o setUserExclusions()
 o startCntlr()
Command the downloaded App to be started.
 o stopCntlr()
Command the App to stop (currently implemented as a reboot).
 o updateApp(String, byte[], float)
Update an application in the available list.
 o verifyComm(int)
Provides a more detailed evaluation of the hardware communications.

Variables

 o listeners
 protected Vector listeners
The listeners is a Vector of registered objects which are to be notified when a HdwEvent is generated.

 o dispatchGrp
 protected ThreadGroup dispatchGrp
 o symTableFilter
 public SymTableFilter symTableFilter
The symTableFilter provides a "catalog" of the accessible symbols.

Constructors

 o HdwMgrImpl
 public HdwMgrImpl(HdwHostImpl owner)
Creates a HdwMgrImpl for a particular HdwHost object.

Parameters:
owner - The HdwHost which has this HdwMgrImpl.

Methods

 o finalize
 public void finalize()
Overrides:
finalize in class Object
 o setUserExclusions
 public String[] setUserExclusions()
 o addHdwListener
 public void addHdwListener(HdwListener listener)
Adds a HdwListener

Parameters:
listener - HdwListener to be added.
 o re"> removeHdwListener
 public void removeHdwListener(HdwListener listener)
Removes a HdwListener

Parameters:
listener - HdwListener to be removed.
 o setupWorkingDirectory
 protected boolean setupWorkingDirectory()
Creates the base Creates the base working directory where all apps will be stored.

Returns:
true if the working directory was created or exists.
 o getControllerState
 public int getControllerState()
Get the value of controllerState.

Returns:
Value of controllerState.
 o isAppNameOpen
 public boolean isAppNameOpen(String v)
Determine if an application is in the available list.

Parameters:
v - Value to check.
Returns:
True if application is available.
 o registerApp
 public synchronized boolean registerApp(String v,
                                         byte outFile[],
                                         float period)
Register an application in the available list.

Parameters:
v - Name of appt> Parameters:
v - Name of app to register.
outFile - Contains the coff file.
period - Base time period (sec) for the app.
Returns:
App successfully registered.
 o updateApp
 public boolean updateApp(String v,
                          byte outFile[],
                          float period)
Update an application in the available list.

Par>
Parameters:
v - Name of app to register.
outFile - Contains the coff file.
period - Base time period (sec) for the app.
Returns:
App successfully registered.
 o removeApp
 public synchronized boolean removeApp(String v)
Remove an app. Note, this app cannot be the currentApp.

Parameters:
v - App to be removed from the available list.
Returns:
true if App successfully removed.
 o setCurrentApp
 public boolean setCurrentApp(String v)
Set the value of currentApp.

Parameters:
v - Value to assign to currentApp.
Returns:
App successfully made currentApp.
 o getCurrentApp
 public String getCurrentApp()
Get the value of currentApp (name only).

Returns:
Returns:
Name of the currentApp.
 o getAvailableApps
 public synchronized String[] getAvailableApps()
Get a list of the available applications.

Returns:
Value of available applications.
 o downloadApp
 public boolean do
 public boolean downloadApp()
Download the current App to the hardware.

Returns:
true if download completed by the host.
 o rebootHdw
 public boolean rebootHdw()
Force the hardware to reboot, including all actions leading to reboot. Other actions may include general reset and host communications re-initialization.

Returns:
true reboot was successful.
 o startCntlr
 public boolean startCntlr()
Command the downloaded App to be started.

Returns:
true if successful, otherwise false.
 o stopCntlr
 public boolean stopCntlr()
Command the App to stop (currently implemented as a reboot).

Returns:
true if successful, otherwise false.
 o pauseCntlr
 public boolean pauseCntlr()
Command the App to suspend (pause) execution of the current App (Not yet implemented). Note, communications is still available.

Returns:
false
 o resumeCntlr
 public boolean resumeCntlr()
Command the App to resume execution (followe execution (following a pauseCntlr () of the current App (Not yet implemented). Note, communications is still available.

Returns:
false
 o verifyComm
 public int verifyComm(int level)
Provides a more detailed evaluation of the hardware communications. See @see com.arcsinc.hardwarehost.PhysHdwCommImpl

Parameters:
level - throughness of diagnostic
Returns:
result code
 o getVerifyMessages
 public String[] getVerifyMessages(int level,
                                   int code)
Returns the appropriate message associated with a call to verifyComm().

Returns:
the message
 o isCommWorking
 public boolean isCommWorking()
Determine if communications to the hardware is functioning. Note, this function can be called safely, whether or not the can be called safely, whether or not the communications is functioning.

Returns:
True if the hardware responses to communications.
 o setParams
 public boolean setParams(Vector params)
Set symbol(s) in the application currently running on the controller.

Parameters:
params - a Vector of ExtVariableSpec objects which hold symbol hich hold symbol references and the values which are to be set.
Returns:
true if successfully completed.
 o getParams
 public Vector getParams(Vector params)
Get symbol value(s) in the application currently running on the controller. Note, values are returned in params.

Parameters:
params - a Vector of ExtVariableSpec objects which hold symbol references. to be set.
Returns:
Vector with the parameters' values.
 o getDataAcqMgr
 public DataAcqMgr getDataAcqMgr(DataAcqClient client)
Gets a reference to the DataAcqMgr

Parameters:
client - a DataAcqClient to attach to the manager
Returns:
the DataAcqMgr
 o addRemoteConnection
 public Integer addRemoteConnection(String rHostName,
                                    String rObjName)
 o removeAllRemoteLinkages
 public boolean removeAllRemoteLinkages()
 o removeAllRemoteConnections
 public boolean removeAllRemoteConnections()
 o removeRemoteConnection
 public boolean removeRemoteConnection(Integer remoteRef)
 o setSynchronous
 public boolean setSynchronous(Integer remoteRef,
                               ExtVariableSpec syncVar)
 o setAsynchronous
 public boolean setAsynchronous(Integer remoteRef)
 o establishLinkage
 public boolean establishLinkage(Integer remoteRef,
                                 ExtVariableSpec connecttVariableSpec connectionVariables[])
 o getRemoteDataSpec
 public Vector getRemoteDataSpec(Integer remoteRef)

All Packages  Class Hierarchy  This Package  Previous  Next    Index
>