|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFourMS.SequenceSubaction
FourMS.UpdateFilterList
public class UpdateFilterList
This is an subaction which can be used to update the noticeboard items which hold the details of the filters for each of the mechanisms which can hold filters which are held in a specified 4MS system. As part of the initialisation sequence, the details of all of the mechanisms which contain optical components are passed into the constructor so when the subaction is invoked, it can calculate which filters it need to update in the noticeboard. The data relating to the filters is stored in the ICS filter database.
Field Summary | |
---|---|
private java.sql.Connection |
DBConnection
This an active connection to the ICS databas which will be used to establish the optical qualities of the filter which is currently in the filter wheel |
(package private) FilterDetails[] |
FilterMechanisms
These are the names and number of slots in each of the filters which need to maintained. |
private iParameterNoticeBoard.ParameterNoticeBoardSupplier |
ParameterNoticeBoard
This is a reference to the remote proxy CORBA object which will be used to access the parameter notice board so that we may store associated status information such as the current update status of the ADC. |
Constructor Summary | |
---|---|
UpdateFilterList(java.lang.String SequenceSubactionName,
java.lang.String InstrumentName,
java.sql.Connection DBConnection,
org.omg.PortableServer.POA Poa,
org.omg.CORBA.ORB Orb,
MessageHandler SyslogMessageHandler,
org.omg.CosNaming.NamingContextExt RootNamingServiceContext,
iParameterNoticeBoard.ParameterNoticeBoardSupplier ParameterNoticeBoard,
FilterDetails[] FilterMechanisms)
The constructor |
Method Summary | |
---|---|
boolean |
cancelAction()
This is part of the interface to the SubActions operations which we are bound to implement, it results in the subaction being cancelled but in effect does nothing as this action is completed immediately as it only interacts with the software controller and not the 4MS itself |
void |
run()
This is the run method, we must implement this method as the subclass is extends the TimerTask class. |
boolean |
startAction(java.lang.String[] subactionArgs,
SubActionCompletionListener subActionInitiator)
This method starts the subaction, no arguments are expected in the subaction array. |
Methods inherited from class FourMS.SequenceSubaction |
---|
informSubactionInitiator, informSubactionInitiator, registerSubactionInNameService, returnResult, subActionEnded, waitForActionToComplete |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
FilterDetails[] FilterMechanisms
private java.sql.Connection DBConnection
private iParameterNoticeBoard.ParameterNoticeBoardSupplier ParameterNoticeBoard
Constructor Detail |
---|
public UpdateFilterList(java.lang.String SequenceSubactionName, java.lang.String InstrumentName, java.sql.Connection DBConnection, org.omg.PortableServer.POA Poa, org.omg.CORBA.ORB Orb, MessageHandler SyslogMessageHandler, org.omg.CosNaming.NamingContextExt RootNamingServiceContext, iParameterNoticeBoard.ParameterNoticeBoardSupplier ParameterNoticeBoard, FilterDetails[] FilterMechanisms)
SequenceSubactionName
- This is the name of the subaction
sequence for reporting purposes, this should correspond to the
name that is given to the object in the name serviceInstrumentName
- This is the name of the instrument to which this subaction is associatedPoa
- This is a reference to the POA to be used by this objectOrb
- This is a reference to the ORBSyslogMessageHandler
- A syslog message handler which will be used for error reportingRootNamingServiceContext
- This is a reference to the root context of the naming service so that we canFilterMechanisms
- This contains the details of the all of the mechanisms in this
4MS system which contain filters which need to be maintained.Method Detail |
---|
public boolean startAction(java.lang.String[] subactionArgs, SubActionCompletionListener subActionInitiator) throws SubActionInProgressException, UnableToStartSubactionException
startAction
in interface SubActionOperations
startAction
in class SequenceSubaction
subactionArgs
- - This is a list of the arguments which
pertain to this subactionsubActionInitiator
- - This is a reference to the object
that has started the subaction and must implement the
iActionFinishedInterface. The subaction will rely on this
interface in order to inform the initiator that the subaction
has terminated.
SubActionInProgressException
- Thrown if the subaction is already in progress when the caller
attempts to initiate the action.
UnableToStartSubactionException
- Thrown when there is a problem initiating the subactionpublic boolean cancelAction() throws SubActionNotInProgressException
cancelAction
in interface SubActionOperations
cancelAction
in class SequenceSubaction
SubActionNotInProgressException
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |