Interface ObservableAbstractHamsterCommandSpecification
- All Superinterfaces:
ObservableCommandSpecification
- All Known Subinterfaces:
ObservableInitHamsterCommandSpecification
,ObservableMoveCommandSpecification
,ObservablePickGrainCommandSpecification
,ObservablePutGrainCommandSpecification
,ObservableTurnLeftCommandSpecification
,ObservableWriteCommandSpecification
- All Known Implementing Classes:
AbstractHamsterCommandSpecification
,InitHamsterCommandSpecification
,MoveCommandSpecification
,PickGrainCommandSpecification
,PutGrainCommandSpecification
,TurnLeftCommandSpecification
,WriteCommandSpecification
public interface ObservableAbstractHamsterCommandSpecification
extends ObservableCommandSpecification
Base interface for all ObservableCommandSpecification that need a hamster, like
ObservableMoveCommandSpecification to move the hamster or
ObservableTurnLeftCommandSpecification to make the hamster turn left
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the hamster that is modified by this command specification
-
Method Details
-
getHamster
ObservableHamster getHamster()Getter for the hamster that is modified by this command specification- Returns:
- the hamster, != null
-