OpenASIP 2.2
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
SetSimulationTimeout Class Reference
Collaboration diagram for SetSimulationTimeout:
Collaboration graph

Static Public Member Functions

static bool execute (SimulatorInterpreter &, SimulatorFrontend &simFront, unsigned int newValue)
 
static const DataObjectdefaultValue ()
 
static bool warnOnExistingProgramAndMachine ()
 

Detailed Description

Setting action that sets the simulation timeout

Definition at line 322 of file SettingCommand.cc.

Member Function Documentation

◆ defaultValue()

static const DataObject & SetSimulationTimeout::defaultValue ( )
inlinestatic

Returns the default value of this setting.

Returns
The default value.

Definition at line 343 of file SettingCommand.cc.

343 {
344 static const DataObject defaultValue_("0");
345 return defaultValue_;
346 }

◆ execute()

static bool SetSimulationTimeout::execute ( SimulatorInterpreter ,
SimulatorFrontend simFront,
unsigned int  newValue 
)
inlinestatic

Sets the simulation timeout in seconds

Parameters
simFrontSimulatorFrontend to set the timeout for.
newValueValue to setting
Returns
True if setting was successful.

Definition at line 330 of file SettingCommand.cc.

333 {
334 simFront.setTimeout(newValue);
335 return true;
336 }
void setTimeout(unsigned int value)

References SimulatorFrontend::setTimeout().

Here is the call graph for this function:

◆ warnOnExistingProgramAndMachine()

static bool SetSimulationTimeout::warnOnExistingProgramAndMachine ( )
inlinestatic

Should the action warn if program & machine exist and value was changed

Returns
boolean value on whether or not to warn

Definition at line 353 of file SettingCommand.cc.

353 {
354 return false;
355 }

The documentation for this class was generated from the following file: