Class BuildSimulatedResourceEnvironment
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.system.staticstructure.commands.BuildSimulatedResourceEnvironment
-
- All Implemented Interfaces:
ICommand<SimulatedResourceEnvironment,PCMModel>
,IPCMCommand<SimulatedResourceEnvironment>
public class BuildSimulatedResourceEnvironment extends Object implements IPCMCommand<SimulatedResourceEnvironment>
This command creates theSimulatedResourceEnvironment
.
-
-
Constructor Summary
Constructors Constructor Description BuildSimulatedResourceEnvironment()
Constructs a command that builds theSimulatedResourceEnvironment
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cachable()
SimulatedResourceEnvironment
execute(PCMModel pcm, ICommandExecutor<PCMModel> executor)
Executes the operation encapsulated by this class.
-
-
-
Constructor Detail
-
BuildSimulatedResourceEnvironment
public BuildSimulatedResourceEnvironment()
Constructs a command that builds theSimulatedResourceEnvironment
.- Parameters:
model
- the simulation model
-
-
Method Detail
-
execute
public SimulatedResourceEnvironment execute(PCMModel pcm, ICommandExecutor<PCMModel> executor)
Executes the operation encapsulated by this class.Notice: This method is not intended to be called by clients. Use a
ICommandExecutor
instead to execute the operation.- Specified by:
execute
in interfaceICommand<SimulatedResourceEnvironment,PCMModel>
- Parameters:
pcm
- the modelexecutor
- theICommandExecutor
that currently executes this operation. Use this reference to invoke sub-operations also implementing thisICommand
interface.- Returns:
-
cachable
public boolean cachable()
- Specified by:
cachable
in interfaceICommand<SimulatedResourceEnvironment,PCMModel>
- Returns:
- whether the command may be cached or not.
-
-