Class VehicleSeenTrafficSignsUpdate

java.lang.Object
org.eclipse.mosaic.rti.api.Interaction
org.eclipse.mosaic.interactions.trafficsigns.VehicleSeenTrafficSignsUpdate
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Interaction>

public final class VehicleSeenTrafficSignsUpdate extends Interaction
This extension of Interaction stores a map of all traffic signs which are in sight distance of a specific vehicle and a map of all traffic signs which became invalid for that vehicle.
See Also:
  • Field Details

    • TYPE_ID

      public static final String TYPE_ID
  • Constructor Details

  • Method Details

    • addNewSign

      public void addNewSign(String vehicleId, TrafficSign trafficSign)
      Adds a new which is in sight area of vehicle with .
      Parameters:
      vehicleId - The vehicle identifier.
      trafficSign - The traffic sign.
    • addPassedSign

      public void addPassedSign(String vehicleId, TrafficSign trafficSign)
      Adds a which has become invalid for vehicle with .
      Parameters:
      vehicleId - The vehicle identifier.
      trafficSign - The traffic sign.
    • getAllRecipients

      public List<String> getAllRecipients()
      Returns a list of all receiver vehicles.
      Returns:
      list of all receiver vehicles
    • getNewSigns

      public List<TrafficSign> getNewSigns(String vehicleId)
      Returns the list of new traffic signs of which vehicle with is recipient.
      Parameters:
      vehicleId - vehicle identifier
      Returns:
      list of all traffic signs that just became valid for
    • getPassedSigns

      public List<TrafficSign> getPassedSigns(String vehicleId)
      Returns the list of traffic signs that became invalid of which vehicle with is recipient.
      Parameters:
      vehicleId - vehicle identifier
      Returns:
      list of all traffic signs that just became invalid for
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Interaction
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Interaction
    • toString

      public String toString()
      Overrides:
      toString in class Interaction