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 booleancachable()SimulatedResourceEnvironmentexecute(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
ICommandExecutorinstead to execute the operation.- Specified by:
executein interfaceICommand<SimulatedResourceEnvironment,PCMModel>- Parameters:
pcm- the modelexecutor- theICommandExecutorthat currently executes this operation. Use this reference to invoke sub-operations also implementing thisICommandinterface.- Returns:
-
cachable
public boolean cachable()
- Specified by:
cachablein interfaceICommand<SimulatedResourceEnvironment,PCMModel>- Returns:
- whether the command may be cached or not.
-
-