|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
OCSEPICS.StatusVariable
public class StatusVariable
This is a base class which will be inherited by all status variables which are to be included in the observing system and passed around.
Field Summary | |
---|---|
protected OCSCORBAHelper |
OCSCorba
An instance of the OCS CORBA helper which will be used to facilitate CORBA related activities |
protected FourMS.FourMSParameterConverter |
ParameterConvertor
This will be used by the PV class to convert between engineering and logical units. |
protected iParameterNoticeBoard.ParameterNoticeBoardSupplier |
ParameterNoticeBoard
This is a reference to the parameter noticeboard so that the PV may update it when there is an event on the monitored PV. |
protected java.lang.String |
StatusVariableName
This is the name which is associated with the status item. |
protected MessageHandler |
SyslogMessageHandler
This will be used for reporting information to the syslog |
protected java.lang.String |
UnitConversionMethod
This will be used to convert incoming and outgoing values which are to be read and written to the PV between logical units and engineering units. |
Constructor Summary | |
---|---|
StatusVariable()
|
|
StatusVariable(OCSCORBAHelper OCSCorba,
MessageHandler SyslogMessageHandler,
FourMS.FourMSParameterConverter ParameterConvertor)
The constructor for the class |
Method Summary | |
---|---|
void |
finalize()
|
void |
run()
This is the run method which is the obligation of the TimerTask interface. |
protected ing.status.StatusItemValue |
updateParameterNoticeboard(java.lang.String[] NBParameterNames,
int StatusErrorCode,
java.lang.String StatusErrorMessage)
Will be used to be update the logical and engineering unit in the noticeboard when there is an error. |
protected ing.status.StatusItemValue |
updateParameterNoticeboard(java.lang.String NoticeboardItemName,
org.omg.CORBA.Any StatusValue)
Update the parameter noticeboard with the value of the status item. |
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 |
Field Detail |
---|
protected java.lang.String StatusVariableName
protected OCSCORBAHelper OCSCorba
protected MessageHandler SyslogMessageHandler
protected iParameterNoticeBoard.ParameterNoticeBoardSupplier ParameterNoticeBoard
protected java.lang.String UnitConversionMethod
protected FourMS.FourMSParameterConverter ParameterConvertor
Constructor Detail |
---|
public StatusVariable(OCSCORBAHelper OCSCorba, MessageHandler SyslogMessageHandler, FourMS.FourMSParameterConverter ParameterConvertor) throws java.lang.Exception
OCSCorba
- This is an instance of a CORBA helper classSyslogMessageHandler
- Will be used to report errors into the syslogParameterConvertor
- Will be used to convert status between logical and engineering units
java.lang.Exception
- Should not all of the input parameters be none nullpublic StatusVariable()
Method Detail |
---|
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
protected ing.status.StatusItemValue updateParameterNoticeboard(java.lang.String[] NBParameterNames, int StatusErrorCode, java.lang.String StatusErrorMessage) throws UnableToUpdateNoticeboardException
NBParameterNames
- An arry of the noticeboard items names which will be updatedStatusErrorCode
- This is the error code which is associated with the status valueStatusErrorMessage
- This is the message which is associated with the status item.
UnableToUpdateNoticeboardException
- When we are unable to update the noticeboard.protected ing.status.StatusItemValue updateParameterNoticeboard(java.lang.String NoticeboardItemName, org.omg.CORBA.Any StatusValue) throws UnableToUpdateNoticeboardException
NoticeboardItemName
- This is the nmae of the item which is to be
written into the noticeboard.StatusValue
- This is the value associated with the status which is to
be written into the noticeboard.
UnableToUpdateNoticeboardException
- When we cannot write the status values into the noticeboard.public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |