|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbyucc.jhdl.apps.dtb.cli.CLIParamSetter
The CLIParamSetter creates an interface between the JHDL CLI (command line interface) and the DynamicTestBench for the purpose of setting the port parameters of the cell_interface and the other arguments to the constructor. This class is actually the super class of all of the separate CLICommands. It offers a way of automatically creating and registering the commands.
| Field Summary | |
protected DynamicTestBench |
_dtb
The DynamicTestBench for this CLIParamSetter |
protected java.lang.Throwable |
_lastException
The last exception caught when executing the command |
static java.lang.String |
CLITYPE
The CLI type classification for the commands associated with this class |
static java.lang.String |
COMMAND_AUTOBUILD
Name of the command that will tell the DynamicTestBench to build, even if not all parameters are set. |
static java.lang.String |
COMMAND_BUILD
Name of the command that will tell the DynamicTestBench to build, even if not all parameters are set. |
static java.lang.String |
COMMAND_CLOCKSCHEDULE
Name of the command that sets the default clock schedule |
static java.lang.String |
COMMAND_CONSTRUCTOR
Name of the command that retargets a specified constructor rather than the default zeroth constructor |
static java.lang.String |
COMMAND_NETLIST
Name of the command that creates a netlist of the design based on the default netlisting capabilities of the current TechMapper |
static java.lang.String |
COMMAND_PARAM
Name of the command that sets a given parameter |
static java.lang.String |
COMMAND_PARAMGUI
Name of the command that brings up a GUI to help the user view and set parameters of the constructor to use to build the design |
static java.lang.String |
COMMAND_PORTPARAM
Name of the command that sets the parameter for a port or ports |
static java.lang.String |
COMMAND_SIMULATOR_CONTENTS
Name of the command that asks the simulator to dump its structures |
static java.lang.String |
COMMAND_TARGET
Name of the command that sets the TechMapper for the desin |
| Fields inherited from interface byucc.jhdl.util.cli.CLICommand |
OVERLOAD |
| Constructor Summary | |
protected |
CLIParamSetter(DynamicTestBench dtb)
|
| Method Summary | |
static void |
createCLICommands(CLInterpreter interp,
DynamicTestBench dtb)
Used to automagically create all of the related DynamicTestBench CLI commands |
abstract java.lang.Object |
execute(CLInterpreter parent,
java.lang.String[] args)
This method is invoked by CLInterpreter when a command registered to this class is called. |
abstract java.lang.String |
getHelpText(java.lang.String cmdName)
|
java.lang.String |
getHelpType(java.lang.String cmdName)
Returns CLIParamSetter.CLITYPE |
static java.lang.Throwable |
getLastException(java.lang.String command)
|
abstract java.lang.String |
getUsageText(java.lang.String cmdName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CLITYPE
public static final java.lang.String COMMAND_AUTOBUILD
public static final java.lang.String COMMAND_BUILD
public static final java.lang.String COMMAND_CLOCKSCHEDULE
public static final java.lang.String COMMAND_CONSTRUCTOR
public static final java.lang.String COMMAND_NETLIST
public static final java.lang.String COMMAND_PARAM
public static final java.lang.String COMMAND_PARAMGUI
public static final java.lang.String COMMAND_PORTPARAM
public static final java.lang.String COMMAND_TARGET
public static final java.lang.String COMMAND_SIMULATOR_CONTENTS
protected DynamicTestBench _dtb
protected java.lang.Throwable _lastException
| Constructor Detail |
protected CLIParamSetter(DynamicTestBench dtb)
| Method Detail |
public static void createCLICommands(CLInterpreter interp,
DynamicTestBench dtb)
interp - the interpreter for the commandsdtb - the test bench (DynamicTestBench)public static java.lang.Throwable getLastException(java.lang.String command)
public abstract java.lang.Object execute(CLInterpreter parent,
java.lang.String[] args)
throws CLIException
execute in interface CLICommandparent - the CLInterpreter to interact withargs - args[0] is the command called, the rest of the values
in args are the arguments passed to the command on the command
line
CLIExceptionpublic abstract java.lang.String getHelpText(java.lang.String cmdName)
getHelpText in interface CLICommandcmdName - the name of the command to give the help text for
public final java.lang.String getHelpType(java.lang.String cmdName)
getHelpType in interface CLICommandcmdName - the command to give the help type for.
public abstract java.lang.String getUsageText(java.lang.String cmdName)
getUsageText in interface CLICommandcmdName - the name of the command to give the usage for
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||