|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Controller is an object that exerts some control over members of a Space. The Controller interface defines a minimal requirement for all Controllers - that is they are notified whenever they are added or removed from a Space. No particular functionality or modus operandi of a controller is assumed.
There are a number of interfaces that extend this interface that provide a particular behaviour of the Controller - particularly in relationship of the controller to its space. Those interfaces functionality in terms of the requirements they have when they are added to a Space are all supported in the SimpleSpace implementation. For example, TicklishControllers provide a list of Ticklish objects that should be tickled by the Space's Timer. When a TicklishController is added to the SimpleSpace the SimpleSpace will tickle this controller.
The extension interfaces provide their own documentation for the actions they require. The provided controller interfaces should provide a comprehensive set of requirements for describing the interaction between controllers and spaces.
Space
Method Summary | |
void |
addedToSpace(Space s)
This method is called by the Space when a Controller is being addedTo the Space s. |
void |
removedFromSpace()
Called by the Space when a Controller is being removed from a Space. |
Method Detail |
public void addedToSpace(Space s)
s
- the Space being added topublic void removedFromSpace()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |