|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.Defaults
The Defaults
class contains the default mappings for microcontrollers, actions,
input formats, constants, etc.
Nested Class Summary | |
static class |
Defaults.AutoProgramReader
|
Constructor Summary | |
Defaults()
|
Method Summary | |
static void |
addMainCategory(HelpCategory cat)
|
static Action |
getAction(java.lang.String s)
The getAction() method gets the action corresponding to the given name
represented as a string. |
static java.util.List |
getActionList()
The getActionList() method returns a list of aliases for actions sorted
alphabetically. |
static java.util.List |
getAllCategories()
|
static HelpCategory |
getHelpCategory(java.lang.String name)
|
static InterpreterFactory |
getInterpreterFactory()
|
static java.util.List |
getMainCategories()
|
static MicrocontrollerFactory |
getMicrocontroller(java.lang.String s)
The getMicrocontroller() method gets the microcontroller factory corresponding
to the given name represented as a string. |
static MonitorFactory |
getMonitor(java.lang.String s)
The getMonitor() method gets the monitor corresponding to the given name
represented as a string. |
static PlatformFactory |
getPlatform(java.lang.String s)
The getPlatform() method gets the platform factory corresponding to the
given name represented as a string. |
static ProgramReader |
getProgramReader(java.lang.String s)
The getProgramReader() method gets the program reader corresponding to
the given name represented as a string. |
static java.util.List |
getProgramReaderList()
The getProgramReaderList() method returns a list of aliases for program
readers sorted alphabetically. |
static Simulation |
getSimulation(java.lang.String s)
|
static TestHarness |
getTestHarness(java.lang.String s)
The getTestHarness() method gets the test harness class corresponding to
the given name represented as a string. |
static Simulator |
newSimulator(int id,
Program p)
|
static Simulator |
newSimulator(int id,
java.lang.String mcu,
long hz,
long exthz,
InterpreterFactory factory,
Program p)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Defaults()
Method Detail |
public static MicrocontrollerFactory getMicrocontroller(java.lang.String s)
getMicrocontroller()
method gets the microcontroller factory corresponding
to the given name represented as a string. This string can represent a short name for the
class (an alias), or a fully qualified Java class name.
s
- the name of the microcontroller as string; a class name or an alias such as "atmega128"
MicrocontrollerFactory
interface that is capable
of creating repeated instances of the microcontroller.public static PlatformFactory getPlatform(java.lang.String s)
getPlatform()
method gets the platform factory corresponding to the
given name represented as a string. This string can represent a short name for the
class (an alias), or a fully qualified Java class name.
s
- the name of the platform as string; a class name or an alias such as "mica2"
PlatformFactory
interface that is capable of
creating repeated instances of the microcontroller.public static ProgramReader getProgramReader(java.lang.String s)
getProgramReader()
method gets the program reader corresponding to
the given name represented as a string. This string can represent a short name for the
class (an alias), or a fully qualified Java class name.
s
- the name of the program reader format as a string
ProgramReader
class that is capable of reading
a program into the internal program representation format.public static Action getAction(java.lang.String s)
getAction()
method gets the action corresponding to the given name
represented as a string. This string can represent a short name for the
class (an alias), or a fully qualified Java class name.
s
- the name of the action as a string
Action
class which can run given the command
line arguments and options provided.public static MonitorFactory getMonitor(java.lang.String s)
getMonitor()
method gets the monitor corresponding to the given name
represented as a string. This string can represent a short name for the class (an alias),
or a fully qualified Java class name.
s
- the name of the monitor as a string
MonitorFactory
class that is capable of attaching
monitors to nodes as they are createdpublic static Simulation getSimulation(java.lang.String s)
public static TestHarness getTestHarness(java.lang.String s)
getTestHarness()
method gets the test harness class corresponding to
the given name represented as a string. This string can represent a short name for the class (an alias),
or a fully qualified Java class name.
s
- the name of the test harness as a string
TestHarness
class that is capable of creating a
test case for a file and running itpublic static java.util.List getActionList()
getActionList()
method returns a list of aliases for actions sorted
alphabetically.
public static java.util.List getProgramReaderList()
getProgramReaderList()
method returns a list of aliases for program
readers sorted alphabetically.
public static void addMainCategory(HelpCategory cat)
public static HelpCategory getHelpCategory(java.lang.String name)
public static java.util.List getMainCategories()
public static java.util.List getAllCategories()
public static Simulator newSimulator(int id, Program p)
public static InterpreterFactory getInterpreterFactory()
public static Simulator newSimulator(int id, java.lang.String mcu, long hz, long exthz, InterpreterFactory factory, Program p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |