Class DownMovement
- java.lang.Object
 - 
- edu.ubo.satellitebeacons.main.movable.movement.DownMovement
 
 
- 
- All Implemented Interfaces:
 DestinationReachEmitter,Emitter,DirectionalMovement,Movement
public class DownMovement extends java.lang.Object implements DirectionalMovement
 
- 
- 
Constructor Summary
Constructors Constructor Description DownMovement(int max, int speed) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E extends java.util.EventObject>
Listener<E>addEventListener(java.lang.Class<E> event, Listener<E> l)Add a new event listener.voidemitMaxReach()voidmove(Movable movable)Move a movable.<E extends java.util.EventObject>
Listener<E>removeEventListener(java.lang.Class<E> event, Listener<E> l)Remove a listener.
Warning this method is optional. 
 - 
 
- 
- 
Method Detail
- 
emitMaxReach
public void emitMaxReach()
- Specified by:
 emitMaxReachin interfaceDestinationReachEmitter
 
- 
addEventListener
public <E extends java.util.EventObject> Listener<E> addEventListener(java.lang.Class<E> event, Listener<E> l)
Description copied from interface:EmitterAdd a new event listener. The listener will be call every time where the event is emitted.- Specified by:
 addEventListenerin interfaceEmitter- Type Parameters:
 E- Any event based on EventObject.- Parameters:
 event- Event that will be listened to.l- Listener to call when the event is emitted.- Returns:
 - The listener if it is correctly registered otherwise 
null. 
 
- 
removeEventListener
public <E extends java.util.EventObject> Listener<E> removeEventListener(java.lang.Class<E> event, Listener<E> l)
Description copied from interface:EmitterRemove a listener.
Warning this method is optional.- Specified by:
 removeEventListenerin interfaceEmitter- Type Parameters:
 E- Any event based on EventObject.- Parameters:
 event- Event where the listener listen.l- Reference to the listener method.- Returns:
 - The listener if it is correctly removed otherwise 
null. 
 
 - 
 
 -