Class SimulationOptions
java.lang.Object
com.nomagic.magicdraw.simulation.execution.SimulationOptions
A class that maintains the option values being used during the execution simulation.
Also provides out-of-the-box option key constants to retrieve the option values by.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Active symbol color option keystatic final String
Add Control Panel option keystatic final String
Allow Concurrent Allocated Activities option keystatic final String
Animation Speed option keystatic final String
Turns on live unit conversion during simulation.static final String
Auto Create fUML Object of Output Pin option keystatic final String
Auto open diagrams option keystatic final String
Auto start execution option keystatic final String
Auto Start Active Objects option keystatic final String
Auto terminate execution option keystatic final String
Automatic Parametric Recalculation option keystatic final String
Breakpoint symbol color option keystatic final String
Capture timestamp of result instance option keystatic final String
Check Model Before Execution option keystatic final String
Clock Ratio option keystatic final String
Clone References option keystatic final String
Constraint Failure as Breakpoint option keystatic final String
Decimal Places option keystatic final String
Default Evaluation Language option keystatic final String
Default Parametric Evaluator option keystatic final String
Duration Simulation Mode option keystatic final String
Endtime option keystatic final String
Registered execution engine priority option keystatic final String
Excluded Elements option keystatic final String
Execution Listeners option keystatic final String
Execution Target option keystatic final String
External Libraries option keystatic final String
External Solver Timeout option keystatic final String
Initialize Empty Values to 0 option keystatic final String
Initialize References option keystatic final String
Last visited symbol color option keystatic final String
Log option keystatic final String
Number of Runs option keystatic final String
Number of Steps option keystatic final String
Display Simulation Dashboard Window option keystatic final String
Pass Caller Context option keystatic final String
Record State Change option keystatic final String
Record Timestamp option keystatic final String
Record Value Change option keystatic final String
Remember Failure Status option keystatic final String
Result Location option keystatic final String
Run Forks in Parallel option keystatic final String
Runtime Value Text Color on Part Shapes option keystatic final String
Show Active State Images option keystatic final String
Show Active State Images on Part Shapes option keystatic final String
Show Active States on Part Shapes option keystatic final String
Show Flowing Information option keystatic final String
Show Held Tokens in Activity Diagram option keystatic final String
Show Runtime Values on Part Shapes option keystatic final String
Silent execution option keystatic final String
Solve After Initialization option keystatic final String
Start Time option keystatic final String
Start Web Server option keystatic final String
Startup Diagram option keystatic final String
Step Delay option keystatic final String
Step Size option keystatic final String
Terminate Behavior on Exception Thrown option keystatic final String
Terminate Nested Behaviors option keystatic final String
Terminate Streaming Behaviors by Output Parameter Multiplicity option keystatic final String
Time Unit option keystatic final String
Time Value option keystatic final String
Time Variable Name option keystatic final String
Treat All Objects as Active option keystatic final String
UI option keystatic final String
Use fUML Decision Semantics option keystatic final String
Visited symbol color option key -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Get the option value from the specified option name.Deprecated.use shorter and more convenientget(String)
boolean
Get the Boolean option value from the specified option name.void
Add the option.void
setIfAbsent
(String optionName, Object value) Sets without overwriting: the provided value is only set when no non-null value exists by this key yet
-
Field Details
-
ACTIVE_COLOR
Active symbol color option key- See Also:
-
VISITED_COLOR
Visited symbol color option key- See Also:
-
BREAKPOINT_COLOR
Breakpoint symbol color option key- See Also:
-
LAST_VISITED_COLOR
Last visited symbol color option key- See Also:
-
AUTO_OPEN_DIAGRAMS
Auto open diagrams option key- See Also:
-
SILENT
Silent execution option key- See Also:
-
DEFAULT_LANGUAGE
Default Evaluation Language option key- See Also:
-
ENGINES_PRIORITY
Registered execution engine priority option key- See Also:
-
AUTO_START
Auto start execution option key- See Also:
-
AUTO_START_ACTIVE_OPTIONS
Auto Start Active Objects option key- See Also:
-
TREAT_ALL_CLASSIFIERS_AS_ACTIVE
Treat All Objects as Active option key- See Also:
-
TERMINATE_BEHAVIOR_ON_EXCEPTION_THROWN
Terminate Behavior on Exception Thrown option key- See Also:
-
INITIALIZE_NUMERICAL_VALUE
Initialize Empty Values to 0 option key- See Also:
-
RECORD_STATE_CHANGE
Record State Change option key- See Also:
-
RECORD_VALUE_CHANGE
Record Value Change option key- See Also:
-
RECORD_TIMESTAMP
Record Timestamp option key- See Also:
-
USE_FUML_DECISION_SEMANTICS
Use fUML Decision Semantics option key- See Also:
-
AUTO_CREATE_FUML_OBJECT_OF_OUTPUT_PIN
Auto Create fUML Object of Output Pin option key- See Also:
-
SOLVE_AFTER_INITIALIZATION
Solve After Initialization option key- See Also:
-
DEFAULT_PARAMETRIC_EVALUATOR
Default Parametric Evaluator option key- See Also:
-
EXTERNAL_SOLVER_TIMEOUT
External Solver Timeout option key- See Also:
-
EXTERNAL_LIBRARIES
External Libraries option key- See Also:
-
CHECK_MODEL_BEFORE_EXECUTION
Check Model Before Execution option key- See Also:
-
SHOW_FLOWING_INFORMATION
Show Flowing Information option key- See Also:
-
RUNTIME_VALUE_TEXT_COLOR_ON_PART_SHAPES
Runtime Value Text Color on Part Shapes option key- See Also:
-
SHOW_ACTIVE_STATES_ON_PART_SHAPES
Show Active States on Part Shapes option key- See Also:
-
SHOW_RUNTIME_VALUES_ON_PART_SHAPES
Show Runtime Values on Part Shapes option key- See Also:
-
SHOW_ACTIVE_STATE_IMAGES_ON_PART_SHAPES
Show Active State Images on Part Shapes option key- See Also:
-
SHOW_ACTIVE_STATE_IMAGES
Show Active State Images option key- See Also:
-
SHOW_HELD_TOKENS_IN_ACTIVITY_DIAGRAM
Show Held Tokens in Activity Diagram option key- See Also:
-
PASS_CALLER_CONTEXT
Pass Caller Context option key- See Also:
-
TERMINATE_NESTED_BEHAVIORS
Terminate Nested Behaviors option key- See Also:
-
TERMINATE_STREAMING_BEHAVIORS_BY_OUTPUT_PARAMETER_MULTIPLICITY
Terminate Streaming Behaviors by Output Parameter Multiplicity option key- See Also:
-
ALLOW_CONCURRENT_ALLOCATED_ACTIVITIES
Allow Concurrent Allocated Activities option key- See Also:
-
AUTO_CONVERT_UNITS
Turns on live unit conversion during simulation.- See Also:
-
UI
UI option key- See Also:
-
ADD_CONTROL_PANEL
Add Control Panel option key- See Also:
-
ANIMATION_SPEED
Animation Speed option key- See Also:
-
CLONE_REFERENCES
Clone References option key- See Also:
-
CONSTRAINT_FAILURE_AS_BREAKPOINT
Constraint Failure as Breakpoint option key- See Also:
-
DECIMAL_PLACES
Decimal Places option key- See Also:
-
DURATION_SIMULATION_MODE
Duration Simulation Mode option key- See Also:
-
ENDTIME
Endtime option key- See Also:
-
EXCLUDED_ELEMENTS
Excluded Elements option key- See Also:
-
EXECUTION_LISTENERS
Execution Listeners option key- See Also:
-
EXECUTION_TARGET
Execution Target option key- See Also:
-
AUTOMATIC_PARAMETRIC_RECALCULATION
Automatic Parametric Recalculation option key- See Also:
-
INITIALIZE_REFERENCES
Initialize References option key- See Also:
-
LOG
Log option key- See Also:
-
NUMBER_OF_RUNS
Number of Runs option key- See Also:
-
NUMBER_OF_STEPS
Number of Steps option key- See Also:
-
OPEN_SIMULATION_PANE
Display Simulation Dashboard Window option key- See Also:
-
REMEMBER_FAILURE_STATUS
Remember Failure Status option key- See Also:
-
RESULT_LOCATION
Result Location option key- See Also:
-
RUN_FORKS_IN_PARALLEL
Run Forks in Parallel option key- See Also:
-
START_TIME
Start Time option key- See Also:
-
START_WEB_SERVER
Start Web Server option key- See Also:
-
STARTUP_DIAGRAM
Startup Diagram option key- See Also:
-
STEP_DELAY
Step Delay option key- See Also:
-
STEP_SIZE
Step Size option key- See Also:
-
TIME_UNIT
Time Unit option key- See Also:
-
TIME_VALUE
Time Value option key- See Also:
-
TIME_VARIABLE_NAME
Time Variable Name option key- See Also:
-
CLOCK_RATIO
Clock Ratio option key- See Also:
-
AUTO_TERMINATE
Auto terminate execution option key- See Also:
-
CAPTURE_TIMESTAMP
Capture timestamp of result instance option key- See Also:
-
-
Constructor Details
-
SimulationOptions
public SimulationOptions()
-
-
Method Details
-
set
Add the option.- Parameters:
optionName
- the option namevalue
- the option value
-
setIfAbsent
Sets without overwriting: the provided value is only set when no non-null value exists by this key yet- Parameters:
optionName
- the option namevalue
- the option value
-
get
Get the option value from the specified option name.- Parameters:
optionName
- the option name- Returns:
- the option value from the specified option name
-
is
Get the Boolean option value from the specified option name.- Parameters:
optionName
- the option name- Returns:
- true if value of given option value is equal to
Boolean.TRUE
-
addOption
Deprecated.useset(String, Object)
instead -
getOption
Deprecated.use shorter and more convenientget(String)
-
set(String, Object)
instead