Class Satellite
- java.lang.Object
-
- edu.ubo.satellitebeacons.main.movable.Movable
-
- edu.ubo.satellitebeacons.main.movable.Satellite
-
- All Implemented Interfaces:
Emitter,PositionChangedEmitter
public class Satellite extends Movable
Simulate the satellite behavior.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonPositionChangedEvent(PositionChangedEvent event)PositionChangedEvent listener.voidonStopEvent(StopSyncEvent event)StopSyncEvent listener.voidreceive(Beacon beacon)Bacon and satellite communication.-
Methods inherited from class edu.ubo.satellitebeacons.main.movable.Movable
addEventListener, emitPositionChanged, getMovement, getPosition, move, removeEventListener, setMovement, setPosition
-
-
-
-
Method Detail
-
onPositionChangedEvent
public void onPositionChangedEvent(PositionChangedEvent event)
PositionChangedEvent listener.- Parameters:
event-
-
receive
public void receive(Beacon beacon)
Bacon and satellite communication.- Parameters:
beacon- Beacon with the full memory.
-
onStopEvent
public void onStopEvent(StopSyncEvent event)
StopSyncEvent listener.- Parameters:
event-
-
-