uk.ac.imperial.ph.hep.command.impl
Class DaqStartRunCmd

java.lang.Object
  extended by uk.ac.imperial.ph.hep.command.DaqCommand
      extended by uk.ac.imperial.ph.hep.command.impl.DaqStartRunCmd

public class DaqStartRunCmd
extends DaqCommand

Author:
Jamie Ballin, HEP, Imperial College London

Constructor Summary
DaqStartRunCmd()
          runStart options: -w (bool) Make output file, default +w = true +a (bool) Ascii output file, default -a = false -d (bool) Enable displays, default +d = true -i (bool) Interrupt runner, default +i = true -t (string) Run type, default crcNoise -n (int) Number of runs, default 1 -p (int) Print level, default 9 -v (int) Run type version (type-dependent), default 5 -m (int) Run type mode, default 0 -c (int) Maximum number of configurations, default 2147483647 -q (int) Maximum number of acquisitions, default 2147483647 -e (int) Maximum number of events, default 2147483647 -s (int) Maximum time of run (secs), default 2147483647 Of these, ±a is obsolete, ±d, -m, -q and -e will not be relevant for MAPS and I have added -b for the max number of bunch trains (which is not relevant at CERN).
 
Method Summary
 void execute()
          Implementations do whatever it is they do here.
 java.lang.String getDescription()
          Implementations should specify what it is they're doing with this string.
 DaqCmdParam getOnOffParameter(java.lang.String paramName)
           
 DaqCmdParamOption getParameterWithOptions(java.lang.String paramName)
           
 boolean isRunning()
           
 void terminate()
          Implementations should cease execution.
 java.lang.String toString()
           
 
Methods inherited from class uk.ac.imperial.ph.hep.command.DaqCommand
notifyListeners, registerListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DaqStartRunCmd

public DaqStartRunCmd()
runStart options: -w (bool) Make output file, default +w = true +a (bool) Ascii output file, default -a = false -d (bool) Enable displays, default +d = true -i (bool) Interrupt runner, default +i = true -t (string) Run type, default crcNoise -n (int) Number of runs, default 1 -p (int) Print level, default 9 -v (int) Run type version (type-dependent), default 5 -m (int) Run type mode, default 0 -c (int) Maximum number of configurations, default 2147483647 -q (int) Maximum number of acquisitions, default 2147483647 -e (int) Maximum number of events, default 2147483647 -s (int) Maximum time of run (secs), default 2147483647 Of these, ±a is obsolete, ±d, -m, -q and -e will not be relevant for MAPS and I have added -b for the max number of bunch trains (which is not relevant at CERN).

Method Detail

execute

public void execute()
Description copied from class: DaqCommand
Implementations do whatever it is they do here. This is asynchronous. It will not block.

Specified by:
execute in class DaqCommand

getDescription

public java.lang.String getDescription()
Description copied from class: DaqCommand
Implementations should specify what it is they're doing with this string.

Specified by:
getDescription in class DaqCommand
Returns:
A short description

isRunning

public boolean isRunning()
Specified by:
isRunning in class DaqCommand

terminate

public void terminate()
Description copied from class: DaqCommand
Implementations should cease execution.

Specified by:
terminate in class DaqCommand

getOnOffParameter

public DaqCmdParam getOnOffParameter(java.lang.String paramName)

getParameterWithOptions

public DaqCmdParamOption getParameterWithOptions(java.lang.String paramName)

toString

public java.lang.String toString()
Specified by:
toString in class DaqCommand