Class AbstractCommand
- java.lang.Object
-
- cern.accsoft.steering.jmad.kernel.AbstractJMadExecutable
-
- cern.accsoft.steering.jmad.kernel.cmd.AbstractCommand
-
- All Implemented Interfaces:
Command
,JMadExecutable
- Direct Known Subclasses:
AbstractMatchMethodCommand
,AbstractTableCommand
,AssignCommand
,BeamCommand
,CallCommand
,CycleCommand
,DeleteCommand
,DynapCommand
,EalignCommand
,EfcompCommand
,EndeditCommand
,EOptionCommand
,EsaveCommand
,FlattenCommand
,GaussEalignCommand
,InstallCommand
,MatchConstraintGlobalCommand
,MatchConstraintLocalCommand
,MatchEndCommand
,MatchInitiateCommand
,MatchVaryParameterCommand
,OptionCommand
,PrintCommand
,PtcAlignCommand
,PtcCreateLayoutCommand
,PtcCreateUniverseCommand
,PtcEndCommand
,PtcSetSwitchCommand
,PtcTwissCommand
,ResbeamCommand
,SaveBetaCommand
,SelectCommand
,SeqeditCommand
,SetFormatCommand
,TrackCommand
,TrackEndCommand
,TrackObserveCommand
,TrackRunCommand
,TrackStartCommand
,TwissCommand
,UseCommand
,ValueCommand
,WriteCommand
public abstract class AbstractCommand extends AbstractJMadExecutable implements Command
-
-
Constructor Summary
Constructors Constructor Description AbstractCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
compose()
composes the final command and returns it as String.java.util.List<Parameter>
getParameters()
this may be overridden if the command has parameters.java.lang.String
toString()
-
Methods inherited from class cern.accsoft.steering.jmad.kernel.AbstractJMadExecutable
getOutputFile, getResultType, setOutputFile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cern.accsoft.steering.jmad.kernel.JMadExecutable
getOutputFile, getResultType, setOutputFile
-
-
-
-
Method Detail
-
compose
public final java.lang.String compose()
Description copied from interface:Command
composes the final command and returns it as String.- Specified by:
compose
in interfaceCommand
- Specified by:
compose
in interfaceJMadExecutable
- Returns:
- the total Command-String.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getParameters
public java.util.List<Parameter> getParameters()
this may be overridden if the command has parameters.- Specified by:
getParameters
in interfaceCommand
- Returns:
- all the parameter for the command
-
-