Class Engine.StateCommand<T>
- java.lang.Object
-
- it.unibo.alchemist.core.implementations.Engine.StateCommand<T>
-
-
Constructor Summary
Constructors Constructor Description StateCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description it.unibo.alchemist.core.interfaces.Command<T>
build()
Performs the building of a Command according to the previously called methods.Engine.StateCommand<T>
pause()
Sets the desired status to PAUSED.Engine.StateCommand<T>
run()
Sets the desired status to RUNNING.Engine.StateCommand<T>
stop()
Sets the desired status to {#@link Status#STOPPED}.
-
-
-
Method Detail
-
run
public Engine.StateCommand<T> run()
Sets the desired status to RUNNING. Calling this method overrides an eventual previous call topause()
and\orstop()
.- Returns:
- the current builder with the updated status
-
pause
public Engine.StateCommand<T> pause()
Sets the desired status to PAUSED. Calling this method overrides an eventual previous call torun()
and\orstop()
.- Returns:
- the current builder with the updated status
-
stop
public Engine.StateCommand<T> stop()
Sets the desired status to {#@link Status#STOPPED}. Calling this method overrides an eventual previous call topause()
and\orrun()
.- Returns:
- the current builder with the updated status
-
build
public it.unibo.alchemist.core.interfaces.Command<T> build()
Performs the building of a Command according to the previously called methods.- Returns:
- the generated Command
-
-