public class Command
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
keywords |
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
static void |
active(AbstractModule[] m,
CommandModule commandModule,
LanguageModule languageModule) |
static java.lang.String |
buildCommand() |
static Algorithm |
decodeAlgorithm(CommandToken token) |
static Algorithm |
decodeAlgorithm(java.lang.String command) |
static Apodization |
decodeApodization(CommandToken token) |
static boolean |
decodeBoolean(java.lang.String cmd) |
static Constraint |
decodeConstraint(CommandToken token) |
static Controller |
decodeController(java.lang.String command) |
static Monitors |
decodeMonitors(java.lang.String cmd) |
static double |
decodeNormalization(CommandToken token) |
static Output |
decodeOut(CommandToken token) |
static Padding |
decodePadding(CommandToken token) |
static double |
decodeResidu(CommandToken token) |
static Stats |
decodeStats(CommandToken token) |
static double |
decodeTimeLimit(CommandToken token) |
static CommandToken |
extract(java.lang.String command,
java.lang.String keyword) |
static java.lang.String |
extractOptions(java.lang.String command) |
static java.util.ArrayList<CommandSegment> |
findSegment(java.lang.String command,
java.lang.String keyword) |
static java.lang.String |
getPath() |
static java.util.ArrayList<CommandToken> |
parse(java.lang.String command)
This methods first segments the command line, then create all the tokens of
the command line
|
static double[] |
parseNumeric(java.lang.String line) |
static void |
updateModules() |
public static void active(AbstractModule[] m, CommandModule commandModule, LanguageModule languageModule)
public static java.lang.String buildCommand()
public static void updateModules()
public static Controller decodeController(java.lang.String command)
public static Algorithm decodeAlgorithm(java.lang.String command)
public static java.util.ArrayList<CommandToken> parse(java.lang.String command)
command
- Command linepublic static CommandToken extract(java.lang.String command, java.lang.String keyword)
public static double[] parseNumeric(java.lang.String line)
public static java.util.ArrayList<CommandSegment> findSegment(java.lang.String command, java.lang.String keyword)
public static java.lang.String extractOptions(java.lang.String command)
public static Algorithm decodeAlgorithm(CommandToken token)
public static Output decodeOut(CommandToken token)
public static double decodeNormalization(CommandToken token)
public static Stats decodeStats(CommandToken token)
public static Constraint decodeConstraint(CommandToken token)
public static double decodeResidu(CommandToken token)
public static double decodeTimeLimit(CommandToken token)
public static Padding decodePadding(CommandToken token)
public static Apodization decodeApodization(CommandToken token)
public static java.lang.String getPath()
public static Monitors decodeMonitors(java.lang.String cmd)
public static boolean decodeBoolean(java.lang.String cmd)
Copyright © , Biomedical Imaging Group, EPFL, Lausanne, Switzerland. All rights reserved.