All Packages Class Hierarchy This Package Previous Next Index
Interface com.arcsinc.hardwarehost.HdwMgr
- public interface HdwMgr
The HdwMgr
interface provides the main practical
interface for interaction with the system.
- See Also:
- DataAcqClient, DataAcqMgr
-
KERNEL
- The KERNEL constant indicates that the hardware is running the
on-board kernel program.
-
LOAt=" o ">
LOADING
- The LOADING constant indicates that the hardware running the
kernel and in the process of downloading an application
program.
-
RUNNING
- The RUNNING constant indicates that the hardware is running an
application program.
-
UNKNOWN
- The UNKNOWN constant indicates that the hardware can be running
any application program, the kernel, or complr completely broken; no
assumptions will be made.
-
addHdwListener(HdwListener)
- Adds a
HdwListener
-
addRemoteConnection(String, String)
- Establish a connection to the
-
downloadApp()
- Download the current App to the hardware.
-
establishLinkage(Integer, ExtVariableSpec[])
-
-
getAvailableApps()
- Get a list of the available applications.
-
getControllerState()
- Get the controller state.
-
getCurrentApp()
- Get the value of currentApp (name only).
-
getDataAcqMgr(DataAcqClient)
- Gets a reference to the
DataAcqMgr
-
getParams(Vector)
- Get symbol value(s) in the application currently running on
the controller.
-
getRemoteDataSpec(Integer)
-
-
getVerifyMessages(int, int)
- Returns the appropriate message associated with a call to
verifyComm()
.
-
isAppNameOpen(String)
- Determine if an application is in the available list.
-
isCommWorking()
- Determine if communications to the hardware is functioning.
-
height=6 alt=" o ">
pauseCntlr()
- Command the application to suspend (pause) execution of the current
application.
-
rebootHdw()
- Force the hardware to reboot, including all actions leading to
reboot.
-
registerApp(String, byte[], float)
- Register an application in the available list.
-
removeApp(String)
- Remove an app.
-
removeHdwListener(HdwListener)
- Removes a
HdwListener
-
removeRemoteConnection(Integer)
-
-
resumeCntlr()
- Command the application to resume execution (following a
pauseCntlr ()
of the current application.
-
setAsynchronous(Integer)
-
-
setCurrentApp(String)
- Set the value of currentApp.
-
setParams(Vector)
- Set the controller
params
.
-
setSynchronous(Integer, ExtVariableSpec)
-
-
startCntlr()
- Command the downloaded application to be started.
-
stopCntlr()
- Command the application to stop.
-
updateApp(String, byte[], float)
- Update an application.
-
verifyComm(int)
- Provides a more detailed evaluation of the hardware common of the hardware communications.
UNKNOWN
public static final int UNKNOWN
- The UNKNOW> The UNKNOWN constant indicates that the hardware can be running
any application program, the kernel, or completely broken; no
assumptions will be made.
KERNEL
public static final int KERNEL
- The KERNEL constant indicates that the hardware is running the
on-board kernel program.
LOADING
public static final int LOADING
- The LOADING constant indicates that the hardware running the
kernel and in the process of downloading an application
program.
RUNNING
public static final int RUNNING
- The RUNNING constant indicates that the hardware is running an
application program.
addHdwListener
public abstract void addHdwListener(HdwListener listener)
- Adds a
HdwListener
de>HdwListener
- Parameters:
- listener -
HdwListener
to be added.
removeHdwListener
public abstract void removeHdwListener(HdwListener listener)
- Removes a
HdwListener
- Parameters:
- listener -
HdwListener
to be r to be removed.
isAppNameOpen
public abstract boolean isAppNameOpen(String v)
- Determine if an application is in the available list.
- Parameters:
- v - Value to check.
- Returns:
- True if application is available.
registerApp
public abstract boolean registerApp(String v,
byte outFile[],
float period)
- Register an application in the available list.
- Parameters:
- v - Value to register.
- outFile - Contains the coff file.
- period - Base time period (sec) for the app.
- Returns:
- App successfully registered.
updateApp
public abstract boolean updateApp(String v,
byte outFile[],
float peri float period)
- Update an application. If application has not be previously
registered, an attempt is made to register the app.
- Parameters:
- v - Value to register.
- outFile - Contains the coff file.
- period - Base time period (sec) for the app.
- Returns:
- App successfully updated.
removeApp
public abstract boolean removeAp 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:
- App successfully removed.
setCurrentApp
public abstract boolean setCurrentApp(String v)
- Set the value of currentApp.
- Parameters:
- v - Value to assign to currentApp.
- Returns:
- App successfully made currentApp.
getCurrentApp
public abstract String getCurrentApp()
- Get the value of currentApp (name only).
- Returns:
- Name of the currentApp.
getAvailableApps
public abstract String[] getAvailableApps()
- Get a list of the available applications.
- Returns:
- Value of available applications.
rebootHdw
public abstract 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.
downloadAppdownloadApp
public abstract boolean downloadApp()
- Download the current App to the hardware.
- Returns:
-
true
if download completed by the host (does not
indicate that the program was successful in running.
startCntlr
public abstract boolean startCntlr()
- Command the downloaded application to be started.
- Returns:
-
true
if successful, otherwise false.
stopCntlr
public abstract boolean stopCntlr()
- Command the application to stop.
- Returns:
-
true
if successful, otherwise false.
pauseCntlr
public abstract boolean pauseCntlr()
- Command the application to suspend (pause) execution of the current
application. Note, communications is still available.
- Returns:
-
true
if successful, otherwise fdd> true
if successful, otherwise false.
resumeCntlr
public abstract boolean resumeCntlr()
- Command the application to resume execution (following a
pauseCntlr ()
of the current application. Note,
communications is still available.
- Returns:
-
true
if successful, otherwise false.
isCommWorking
public abstract boolean isCommWorking()
- Determine if communications to the hardware is functioning.
- Returns:
-
true
if the hardware responses to communications.
verifyComm
public abstract 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
getVerifyMessages
public abstract String[] getVerifyMessages(int level,
int code)
- Returns the appropriate message associated with a call to
verifyComm()
.
- Returns:
- the message
setParams
public absams">setParams
public abstract boolean setParams(Vector params)
- Set the controller
params
.
- Parameters:
- params - a
Vector
of ExtVariableSpec
objects which hold symbol references and the values which are
to be set.
- Returns:
-
true
is successfully completed.
getParams
public abstract Vector getParams(Vecr 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.
getControllerState
public abstract int getControllerState()
- Get the controller state.
- Returns:
- the current controller state
getDataAcqMgr
public abstract DataAcqMgr getDataAcqMgr(DataAcqClient client)
- Gets a reference to the
DataAcqMgr
- Parameters:
- client - a
DataAcqClient
to attach to the
manager
- Returns:
- the
DataAcqMgr
addRemoteConnection
public abstract Integer addRemoteConnection(String rHostName,
String rObjName)
- Establish a connection to the @param rObjName (RemoteNodeServer)
on the @param rHostName.
- Returns:
- Object refernce to this connection
removeRemoteConnection
public abstract boolean removeRemoteConnection(Integer remoteRef)
setSynchronous
public abstract boolean setSynchronous(Integer remoteRef,
ExtVariableSpec syncVar)
setAsynchronous
public abstract boolean setAsynchronous(Integer remoteRef)
establishLinkage
public abstract boolean establishLinkage(Integer remoteRef,
ExtVariableSpec connectionVariable[])
getRemoteDataSpec
public abstract Vector getRemoteDataSpec(Integer remoteRef)
All Packages Class Hierarchy This Package Previous Next Index