Class Beacon

    • Constructor Detail

      • Beacon

        public Beacon​(Position position,
                      Port<Satellite> port)
        Create a new beacon with the given position and a communicate port.
        Parameters:
        position - Departure position of the beacon.
        port - Communication port with all the satellites.
    • Method Detail

      • move

        public void move()
        Description copied from class: Movable
        Move the movable according to its movement.
        Overrides:
        move in class Movable
        See Also:
        Movement
      • fullCapacity

        public void fullCapacity()
        Method if the memory is full. Stop to read sensors. Emit a FullCapacityEvent.
      • onReachSeaLevel

        public void onReachSeaLevel​(DestinationReachEvent event)
        Reach sea level listener.
        Parameters:
        event -
      • getReachOldPositionListener

        public Listener<DestinationReachEvent> getReachOldPositionListener()
        Return the old position listener.
        Returns:
        Reach old position listener.
      • getReachSeaLevelListener

        public Listener<DestinationReachEvent> getReachSeaLevelListener()
        Return the reach sea level listener.
        Returns:
        Reach sea level listener.