| Package | Description |
|---|---|
| desmoj.core.simulator |
The core simulation infrastructure and basic components.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MultiUnitTimeFormatter
Use this class to format TimeSpan and TimeInstant objects like in the
following examples: 59 Minutes, 28 Seconds, and 548 Milliseconds could be formatted like
O:59:28:548 or 59:28 or 59:28:548:000:000 or 0.59.28.
|
class |
PatternBasedTimeFormatter
Use this class to format TimeInstant objects using a java.text.DateFormat object.
|
class |
SingleUnitTimeFormatter |
| Modifier and Type | Method and Description |
|---|---|
static TimeFormatter |
TimeOperations.getDefaultTimeFormatter()
Sets the TimeFormatter used by this environment to a
SingleUnitTimeFormatter, using the current reference
unit and four floating point digits. |
static TimeFormatter |
TimeOperations.getTimeFormatter()
Returns the time Formatter.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Experiment.setTimeFormatter(TimeFormatter format)
Sets the
TimeFormatter to be used for output of time strings. |
static void |
TimeOperations.setTimeFormatter(TimeFormatter myTimeFormatter,
boolean override)
Sets the time Formatter.
|
| Constructor and Description |
|---|
Experiment(java.lang.String name,
java.lang.String outputPath,
TimeFormatter formatter,
java.util.ArrayList<java.lang.String> reportOutputs,
java.util.ArrayList<java.lang.String> traceOutputs,
java.util.ArrayList<java.lang.String> errorOutputs,
java.util.ArrayList<java.lang.String> debugOutputs)
Constructs a new Experiment with the given parameters.
|
Experiment(java.lang.String name,
java.lang.String pathName,
TimeFormatter formatter,
java.lang.String reportOutputType,
java.lang.String traceOutputType,
java.lang.String errorOutputType,
java.lang.String debugOutputType)
Constructs a new Experiment with the given parameters.
|
Experiment(java.lang.String name,
TimeFormatter formatter)
Constructs a new Experiment with the given parameters.
|
Experiment(java.lang.String name,
java.util.concurrent.TimeUnit epsilon,
java.util.concurrent.TimeUnit referenceUnit,
TimeFormatter formatter)
Deprecated.
Please use
Experiment(String name, TimeFormatter formatter)
or other constructors without TimeUnits and set your episilon and
reference time unit by calling setEpsilon(TimeUnit epsilon) and
setReferenceUnit(java.util.concurrent.TimeUnit referenceUnit). |