Class cern.lhcias.csgui.WinMgr.CentralManager
java.lang.Object
|
+----cern.lhcias.csgui.WinMgr.CentralManager
- public class CentralManager
- extends Object
implements OpenViewListener
CentralManager is in charge of instanciating the main objects, such as the frames
containing the TagsView or the DataServers. It knows where to store the configurations
which are to be saved. CentralManager holds global informations on the running system. It
knows, for example, whether remote data are being updated or not. Notification for the
modifications on these global informations are sent to listeners through StatusEvent.
CentralManager(Vector,
Vector, Container)
- The configuration of the starting environment is made through a set of
parameters.
addStatusListener(StatusListener)
-
fireStatus(StatusEvent)
-
getAccessStatus()
-
getAddConfigPg()
-
getGlobalRunningStatus()
- returns true if data are currently acquired by the system.
getRemoteLoadPg()
-
getRemoteSavePg()
-
loadTagsView(boolean)
- A DialogBox of type DialogLoad is opened, and then if needed, a new TagsView will be
instanciated.
openDBView()
- Creates a new FrameDBView, which is a frame and a TagsView of type "DBView".
receiveOpenView(OpenViewEvent)
- Implementation of OpenViewListener.
removeStatusListener(StatusListener)
-
Save(TagsView)
- Open, if allowed, a dialogbox to ask for a name and save under that name the
configuration of a TagsView.
setAddConfigPg(String)
-
setDataServer(String)
- Instanciates a new DataServer.
setDataServer(String,
String, String, String, String, boolean)
- Instanciates a new DataServer.
setGlobalRunningStatus(boolean)
- to be called when data acquisition is stopped.
setRemoteLoadPg(String)
-
setRemoteSavePg(String)
-
startDataServer()
- Starts all DataServers.
stopDataServer()
- Stops all DataServers.

CentralManager
public CentralManager(Vector parameters,
Vector values,
Container MainContainer)
- The configuration of the starting environment is made through a set of
parameters. Those parameters and their values are passed via two vectors;
one containing the names of the parameters and the other one containing
the values of the parameters. Valid parameters are:
SAVE_URL : setRemoteSavePg(value) will be called
ADD_CONFIG_URL : setAddConfigPg(value) will be called
SYN_LIST : setRemoteLoadPg(value) will be called
ALARM_URL : URL of the alarm sound
SYN_RESIZE : Whether the synoptics may be resized or not
COMPONENT_ALIAS : URL of the file containing the list of aliases for the TagsViews
DRIVER_ALIAS : URL of the file containing the list of aliases for the DataServers
--- Definition of a first DataServer -----------------------
TAGS_IN_URL,HOST, PORT, COMMUNICATION_TYPE, PROCESS_NAME, FREQUENCY : See DataServer
- Parameters:
- parameters - The names of the parameters which have been set.
- values - The values of the parameters which have been set.
- MainContainer - The starting java.awt.container (ex: the applet itself). After creating
the different objects, the constructor will instanciate a TagsView of the type
"CompoundView" and will place it in the MainContainer.

openDBView
public void openDBView()
- Creates a new FrameDBView, which is a frame and a TagsView of type "DBView".

receiveOpenView
public void receiveOpenView(OpenViewEvent openvevt)
- Implementation of OpenViewListener. receives OpenViewEvent and creates the requested
TagsView.

loadTagsView
public void loadTagsView(boolean newwin)
- A DialogBox of type DialogLoad is opened, and then if needed, a new TagsView will be
instanciated. RemoteLoadPg has to be set.

Save
public void Save(TagsView tv)
- Open, if allowed, a dialogbox to ask for a name and save under that name the
configuration of a TagsView. AddConfigPg has to be set.
- Parameters:
- tv - the TagsView which configuration has to be saved.

setDataServer
public void setDataServer(String ProcessName,
String DriverType,
String frequencyString,
String host,
String portString,
boolean TagsInURL)
- Instanciates a new DataServer.
- Parameters:
- ProcessName - How to name the new DataServer
- DriverType - The type of DataServer to create
- frequencyString - the frequency as a String (for the polling modes).
- host - The host name
- portString - The port as a String
- TagsinURL - if true, the names of the Tags to poll are sent to the host (polling modes).
- See Also:
- DataServer

setDataServer
public void setDataServer(String config)
- Instanciates a new DataServer. The configuration is passed in a String as described in
the DataServer interface.
- See Also:
- DataServer

startDataServer
public void startDataServer()
- Starts all DataServers.
- See Also:
- DataServerManager

stopDataServer
public void stopDataServer()
- Stops all DataServers.
- See Also:
- DataServerManager

getGlobalRunningStatus
public boolean getGlobalRunningStatus()
- returns true if data are currently acquired by the system.
- See Also:
- DataServerManager

setGlobalRunningStatus
public void setGlobalRunningStatus(boolean status)
- to be called when data acquisition is stopped. This event will be sent to all
StatusListeners.

getAccessStatus
public boolean getAccessStatus()

setRemoteSavePg
public void setRemoteSavePg(String pgName)

getRemoteSavePg
public String getRemoteSavePg()

setRemoteLoadPg
public void setRemoteLoadPg(String pgName)

getRemoteLoadPg
public String getRemoteLoadPg()

setAddConfigPg
public void setAddConfigPg(String pgName)

getAddConfigPg
public String getAddConfigPg()

addStatusListener
public synchronized void addStatusListener(StatusListener listener)

removeStatusListener
public synchronized void removeStatusListener(StatusListener listener)

fireStatus
public void fireStatus(StatusEvent statusevent)