All Packages Class Hierarchy This Package Previous Next Index
Class CDF.CDFdaq
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----com.sun.java.swing.JFrame
|
+----CDF.CDFdaq
- public class CDFdaq
- extends JFrame
This class provides the main window for the program.
-
blockMI
- Menu Item for the vmeM menu
-
calcMI
- Menu Item for the fileM menu
-
clearMI
- Menu Item for the fileM menu
-
daqM
- Control Menu
-
editConfigMI
- Menu Item for the fileM menu
-
fifoMI
- Menu Item for the vmeM menu
-
fileM
- Control Menu
-
initBoardM
- Control Menu
-
initBoardMI
- Array of Menu Items indexed on Board type for the initBoardM menu
-
initMI
- Menu Item for the daqM menu
-
listMI
- Menu Item for the vmeM menu
-
mbar
- The MenuBar
-
pingMI
- Menu Item for the vmeM menu
-
prefsMI
- Menu Item for the fileM menu
-
printMI
- Menu Item for the fileM menu
-
quitMI
- Menu Item for the fileM menu
-
saveHistoryMI
- Menu Item for the fileM menu
-
statusM
- Control Menu
-
statusMI
- Array of Menu Items indexed on Board type for the statusM menu
-
vmeLMI
- Menu Item for the vmeM menu
-
vmeM
- Control Menu
-
vmeMI
- Menu Item for the vmeM menu
-
vmeSMI
- Menu Item for the vmeM menu
-
whichBoard
- Dialog for querying Init Commands
-
windowSize
- Default Window Size
-
CDFdaq()
- Creates the program's main window.
-
addHistory(String)
- Adds a string to the history log (i.e.
-
addHistory(String, int)
- Adds a string to the history log (no carriage return)
and rings the System bell.
-
clearHistory()
- Method to clear text from window - Bound to clearMI menuItem
-
editConfig()
- Method to bring up an EditConfig instance to
add/remove/edit Boards and
Crates - Bound to editConfigMI menuItem
-
initBoard(int)
- Method to initialize the requested board -
Bound to initBoardMI[ibd] menuItem
-
initSystem()
- Method to initialize the system - bound to initMI menuItem.
-
newBlock()
- Method Start a Generic Block Read/Write object
- Bound to blockMI menuItem
-
newFifo()
- Method Start a Generic Block Read/Write object in FIFO mode
- Bound to fifoMI menuItem
-
printHistory(String)
- Prints a string to the history log.
-
printHistory(String, int)
- Prints a string to the history log, and rings the System bell.
-
saveHistory()
-
-
setVisible(boolean)
- Shows/Hides the Main Window.
-
show()
- Shows the Main window.
Deprecated.
-
showBoardStatus(int)
- Method to show the Status page of the requested board -
Bound to statusMI[ibd] menuItem
-
vmeLoopedReadWrite()
- Method Start a Generic VME Single Word Read/Write object in Looping mode
- Bound to vmeLMI menuItem
-
vmeReadWrite()
- Method Start a Generic VME Single Word Read/Write object
- Bound to vmeMI menuItem
-
vmeReadWriteScript()
- Method Start a Generic VME Scripting Single Word Read/Write object
- Bound to vmeSMI menuItem
windowSize
public static Dimension windowSize
- Default Window Size
whichBoard
public WhichBoard whichBoard
- Dialog for querying Init Commands
mbar
public JMenuBar mbar
- The MenuBar
fileM
public JMenu fileM
- Control Menu
vmeM
public JMenu vmeM
- Control Menu
daqM
public JMenu daqM
- Control Menu
statusM
public JMenu statusM
- Control Menu
initBoardM
public JMenu initBoardM
- Control Menu
quitMI
public JMenuItem quitMI
- Menu Item for the fileM menu
clearMI
public JMenuItem clearMI
- Menu Item for the fileM menu
saveHistoryMI
public JMenuItem saveHistoryMI
- Menu Item for the fileM menu
printMI
public JMenuItem printMI
- Menu Item for the fileM menu
prefsMI
public JMenuItem prefsMI
- Menu Item for the fileM menu
editConfigMI
public JMenuItem editConfigMI
- Menu Item for the fileM menu
calcMI
public JMenuItem calcMI
- Menu Item for the fileM menu
vmeMI
public JMenuItem vmeMI
- Menu Item for the vmeM menu
vmeLMI
public JMenuItem vmeLMI
- Menu Item for the vmeM menu
vmeSMI
public JMenuItem vmeSMI
- Menu Item for the vmeM menu
blockMI
public JMenuItem blockMI
- Menu Item for the vmeM menu
fifoMI
public JMenuItem fifoMI
- Menu Item for the vmeM menu
pingMI
public JMenuItem pingMI
- Menu Item for the vmeM menu
listMI
public JMenuItem listMI
- Menu Item for the vmeM menu
initMI
public JMenuItem initMI
- Menu Item for the daqM menu
statusMI
public JMenuItem statusMI[]
- Array of Menu Items indexed on Board type for the statusM menu
initBoardMI
public JMenuItem initBoardMI[]
- Array of Menu Items indexed on Board type for the initBoardM menu
CDFdaq
public CDFdaq()
- Creates the program's main window.
show
public void show()
- Note: show() is deprecated.
Please use CDFdaq.setVisible(boolean) instead
- Shows the Main window.
- Overrides:
- show in class Window
setVisible
public void setVisible(boolean vis)
- Shows/Hides the Main Window.
Overridden to ensure that the Prefs fonts (at least for menus)
are propogated
- Parameters:
- vis - == true -> show window
- Overrides:
- setVisible in class Component
printHistory
public static void printHistory(String output)
- Prints a string to the history log.
- Parameters:
- output - The string to write.
addHistory
public static void addHistory(String output)
- Adds a string to the history log (i.e. no carriage return).
- Parameters:
- output - The string to write.
printHistory
public static void printHistory(String output,
int beeps)
- Prints a string to the history log, and rings the System bell.
- Parameters:
- output - The string to write.
- nbeeps - # of beeps to do
addHistory
public static void addHistory(String output,
int beeps)
- Adds a string to the history log (no carriage return)
and rings the System bell.
- Parameters:
- output - The string to write.
- nbeeps - # of beeps to do
clearHistory
public void clearHistory()
- Method to clear text from window - Bound to clearMI menuItem
editConfig
public void editConfig()
- Method to bring up an EditConfig instance to
add/remove/edit Boards and
Crates - Bound to editConfigMI menuItem
initSystem
public void initSystem()
- Method to initialize the system - bound to initMI menuItem.
Procedure is:
- Read system.cfg (System config file) => CDFcfg.readSystemConfig()
- Clean up possibly pre-existing structures
- Loop over crates
- Create Crate (with or without connections)
- Parse Crate file => Crate.readCrateConfig()
- Init Crate (this calls crate_open in crate_open.c)
- Now have info on all crates, can create boards
- Loop on crates again
- create all Boards in crate => Crate.createBoards()
This is where the board code is loaded onto the server
- Loop on Board types
- Initialize all Boards of this type in crate (in the order that
they are listed in the crateFile) => Board.init()
- Set first instance of this type to current
- Make Links => CDFcfg.makeLinks()
- See Also:
- CDFcfg, Crate, CDFPrefs
vmeLoopedReadWrite
public void vmeLoopedReadWrite()
- Method Start a Generic VME Single Word Read/Write object in Looping mode
- Bound to vmeLMI menuItem
vmeReadWriteScript
public void vmeReadWriteScript()
- Method Start a Generic VME Scripting Single Word Read/Write object
- Bound to vmeSMI menuItem
vmeReadWrite
public void vmeReadWrite()
- Method Start a Generic VME Single Word Read/Write object
- Bound to vmeMI menuItem
newFifo
public void newFifo()
- Method Start a Generic Block Read/Write object in FIFO mode
- Bound to fifoMI menuItem
newBlock
public void newBlock()
- Method Start a Generic Block Read/Write object
- Bound to blockMI menuItem
showBoardStatus
public void showBoardStatus(int iBd)
- Method to show the Status page of the requested board -
Bound to statusMI[ibd] menuItem
- Parameters:
- iBd - Board type to display
initBoard
public void initBoard(int iBd)
- Method to initialize the requested board -
Bound to initBoardMI[ibd] menuItem
- Parameters:
- iBd - Board type choose from for initialization
saveHistory
public void saveHistory()
All Packages Class Hierarchy This Package Previous Next Index