|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
OCSEPICS.EPICSAction
public abstract class EPICSAction
This will be used as a base class for EPICS related actions. This is an abstract class. It provides the base functionality expected of a EPICS action and inherits the standard ICS action interface which will be used to invoke the action from a remote CORBA client. The EPICS action layers above a set of process variables (PV) which are associated with the mechanism which is to be controlled. These PVs will be used to command the mechanism to do something and then read back the status of the mechanism so that the action can ascertain if the action been completed successfully or not.
| Field Summary | |
|---|---|
protected java.util.Hashtable<java.lang.String,ProcessVariable> |
ActionRelatedPVs
These are the PVs which are associated with the action. |
protected java.lang.String |
ClstatPV
This is the name of the PV which wil be used used to hold the state of the mechanism control status. |
protected java.lang.String |
CommPV
This is the PV which will hold the command to be executed from the user. |
protected java.lang.String |
CommStatPV
This is the PV into which the EPICS system will write whether the command which was entered is actually OK or not. |
protected java.lang.String |
CommStrPV
This is the PV associated with any error which is associated with the comamnd validation status. |
protected OCSCORBAHelper |
CORBAHelper
This will be used to perform OCS CORBA related tasks |
protected java.lang.String |
CurrentPositionPV
This is the PV which contains the current position of the mechanism |
protected java.lang.String |
DemandPV
This is the PV into which the demand value for a given action should be written. |
protected java.lang.String |
ErrStrPV
This PV holds the error description string for the mechanism |
protected int |
ExpectedNumberOfSubactionArguments
This is the expected number of arguments which will be passed from the client when this subaction is started |
protected java.lang.String |
InstrumentName
This is the name of the instrument with which this action is associated. |
protected java.lang.String |
IOCAction
This is the name of the IOC action which is associated with this subaction |
(package private) OCSEPICSConsts.IOCSubactionStateType |
iocActionState
This is the state of the underlying IOC action which this action supports. |
protected OCSEPICSConsts.SubactionCompletionStates |
LastSubactionCompletionState
Completion state of the last subaction which was executed. |
protected java.lang.String |
MechName
This is the name of the mechanism with which this subaction is associated. |
protected java.lang.String |
MechStatPV
This PV holds the mechanism status |
protected FourMS.FourMSParameterConverter |
ParameterConvertor
This will be used by the PV class to convert between engineering and logical units. |
protected int |
SecondsBeforeTimeout
This holds the amount of time that a subaction has to go before it timesout,this is reset when an action is started and the value which is used is normally determined by the timeout PV which is contained with the IOC. |
protected FourMSControllerInterfaces.SubActionCompletionListener |
SubActionInitiatorCB
This is a reference to the last object that initiated this subaction. |
protected java.lang.String |
SubactionName
This is the name of the subaction. |
protected OCSEPICSConsts.SubactionStateType |
SubactionState
This attribute relects the current state of the subaction whether it be active or idle. |
protected int |
SubactionTimeout
This is the timeout which is associated with the subaction |
protected java.util.Timer |
SubActionTimer
This is a timer object which will be used for scheduling timer based operations on the subaction. |
protected MessageHandler |
SyslogMessageHandler
This will be used for reporting things to the syslog |
protected java.lang.String |
TimeoutPV
This is the PV which holds the timeout value which is associated with a particular action |
| Fields inherited from interface OCSEPICS.CAEventListener |
|---|
UnitOfInterest |
| Constructor Summary | |
|---|---|
EPICSAction(MessageHandler SyslogMessageHandler,
java.lang.String SubactionName,
java.lang.String MechName,
java.lang.String InstrumentName,
java.util.Hashtable<java.lang.String,ProcessVariable> ActionRelatedPVs,
OCSCORBAHelper CORBAHelper,
FourMS.FourMSParameterConverter ParameterConvertor)
This is the main constructor for the class. |
|
| Method Summary | |
|---|---|
protected abstract boolean |
actionTimedOut()
This method will be called when a subaction times out. |
void |
finalize()
|
void |
run()
This is the obligation to the TimerTask subclass which is extended. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface FourMSControllerInterfaces.SubActionOperations |
|---|
cancelAction, startAction |
| Methods inherited from interface OCSEPICS.CAEventListener |
|---|
channelAccessEvent, observerUnableToListen |
| Field Detail |
|---|
protected FourMSControllerInterfaces.SubActionCompletionListener SubActionInitiatorCB
protected OCSCORBAHelper CORBAHelper
protected int SecondsBeforeTimeout
protected java.util.Timer SubActionTimer
protected java.lang.String SubactionName
protected int ExpectedNumberOfSubactionArguments
protected OCSEPICSConsts.SubactionStateType SubactionState
OCSEPICSConsts.IOCSubactionStateType iocActionState
protected MessageHandler SyslogMessageHandler
protected int SubactionTimeout
protected OCSEPICSConsts.SubactionCompletionStates LastSubactionCompletionState
protected java.util.Hashtable<java.lang.String,ProcessVariable> ActionRelatedPVs
protected java.lang.String IOCAction
protected java.lang.String ClstatPV
protected java.lang.String CommPV
protected java.lang.String DemandPV
protected java.lang.String CommStatPV
protected java.lang.String CommStrPV
protected java.lang.String CurrentPositionPV
protected java.lang.String ErrStrPV
protected java.lang.String MechName
protected java.lang.String InstrumentName
protected java.lang.String MechStatPV
protected FourMS.FourMSParameterConverter ParameterConvertor
protected java.lang.String TimeoutPV
| Constructor Detail |
|---|
public EPICSAction(MessageHandler SyslogMessageHandler,
java.lang.String SubactionName,
java.lang.String MechName,
java.lang.String InstrumentName,
java.util.Hashtable<java.lang.String,ProcessVariable> ActionRelatedPVs,
OCSCORBAHelper CORBAHelper,
FourMS.FourMSParameterConverter ParameterConvertor)
throws java.lang.Exception
SyslogMessageHandler - This will be used for reporting information to
the syslog which is running on the whtics.SubactionName - This is the name which is associated with subaction.MechName - This is the name of the mechanism with which this action is associated.InstrumentName - This is the name of the instrument with which this action is associated.ActionRelatedPVs - This is a hashtable of PV within which
we can expect to find all of the PVs which this subaction is
going to need to use in order to perform it's tasks.CORBAHelper - This will be used for performing OCS related CORBA activities.ParameterConvertor - This will be used to convert parameters between logical and engineering units.
java.lang.Exception - Should there be an error when initialising the object.| Method Detail |
|---|
public void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void run()
run in interface java.lang.Runnablerun in class java.util.TimerTask
protected abstract boolean actionTimedOut()
throws StateMachineException
StateMachineException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||