nslj.src.cmd
Class NslCmd

java.lang.Object
  |
  +--nslj.src.cmd.NslCmd
Direct Known Subclasses:
NslCmdBreak, NslCmdBreakCycles, NslCmdBreakEpochs, NslCmdBreakModules, NslCmdCont, NslCmdContCycle, NslCmdContEpoch, NslCmdContModule, NslCmdDoRunEpochTimes, NslCmdDoTrainEpochTimes, NslCmdEndModule, NslCmdEndRun, NslCmdEndRunEpoch, NslCmdEndSys, NslCmdEndTrain, NslCmdEndTrainEpoch, NslCmdExit, NslCmdInit, NslCmdInitModule, NslCmdInitRun, NslCmdInitRunEpoch, NslCmdInitSys, NslCmdInitTrain, NslCmdInitTrainEpoch, NslCmdQuit, NslCmdReset, NslCmdRun, NslCmdRunAll, NslCmdSimRun, NslCmdSimTrain, NslCmdStepCycle, NslCmdStepEpoch, NslCmdStepModule, NslCmdTrain, NslCmdTrainAll, NslCmdTrainAndRunAll

public abstract class NslCmd
extends java.lang.Object

The user command It set up the main system and calls interpreter to run.


Constructor Summary
NslCmd()
           
 
Method Summary
abstract  void execute()
          Execute this command without any parameter
abstract  void execute(java.util.StringTokenizer parameter_list)
          Execute command with a list of parameters
 java.lang.String getHelpString()
           
 java.lang.String nslGetName()
          Get the name of the command
static void nslSetSystem(NslSystem s)
          Point the command system to main system
abstract  void printHelp()
          Print complex help on standard out
 void printHelpString()
          Print the one line string to standard out
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NslCmd

public NslCmd()
Method Detail

nslSetSystem

public static void nslSetSystem(NslSystem s)
Point the command system to main system
Parameters:
s - main NslSystem

nslGetName

public java.lang.String nslGetName()
Get the name of the command
Returns:
name

getHelpString

public java.lang.String getHelpString()
Returns:
the one line help string

printHelpString

public void printHelpString()
Print the one line string to standard out

printHelp

public abstract void printHelp()
Print complex help on standard out

execute

public abstract void execute()
Execute this command without any parameter

execute

public abstract void execute(java.util.StringTokenizer parameter_list)
Execute command with a list of parameters