Class SetFormatCommand
- java.lang.Object
-
- cern.accsoft.steering.jmad.kernel.AbstractJMadExecutable
-
- cern.accsoft.steering.jmad.kernel.cmd.AbstractCommand
-
- cern.accsoft.steering.jmad.kernel.cmd.SetFormatCommand
-
- All Implemented Interfaces:
Command
,JMadExecutable
public class SetFormatCommand extends AbstractCommand
The command to set the output format of MadX: SET. Unlike the MadX version, which supports up to three format settings at the same time, we only support setting one format at a time here.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULE_FORMAT_STRING
the default output format for stringsstatic java.lang.String
DEFAULT_FORMAT_FLOAT
the default output format for doublesstatic java.lang.String
DEFAULT_FORMAT_INTEGER
default format for integers
-
Constructor Summary
Constructors Constructor Description SetFormatCommand(java.lang.String format)
Set-command, to set output to the given format
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
has to be implemented in order to return the name of the command (keyword);java.util.List<Parameter>
getParameters()
this may be overridden if the command has parameters.-
Methods inherited from class cern.accsoft.steering.jmad.kernel.cmd.AbstractCommand
compose, 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
-
-
-
-
Field Detail
-
DEFAULT_FORMAT_INTEGER
public static final java.lang.String DEFAULT_FORMAT_INTEGER
default format for integers- See Also:
- Constant Field Values
-
DEFAULT_FORMAT_FLOAT
public static final java.lang.String DEFAULT_FORMAT_FLOAT
the default output format for doubles- See Also:
- Constant Field Values
-
DEFAULE_FORMAT_STRING
public static final java.lang.String DEFAULE_FORMAT_STRING
the default output format for strings- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Command
has to be implemented in order to return the name of the command (keyword);- Returns:
- the name of the command (MadX keyword)
-
getParameters
public java.util.List<Parameter> getParameters()
Description copied from class:AbstractCommand
this may be overridden if the command has parameters.- Specified by:
getParameters
in interfaceCommand
- Overrides:
getParameters
in classAbstractCommand
- Returns:
- all the parameter for the command
-
-