Class StreamResult

java.lang.Object
org.eclipse.mosaic.fed.cell.message.StreamResult

public class StreamResult extends Object
Generic message for stream modules (can be either Up or Down).
  • Constructor Details

    • StreamResult

      public StreamResult(String regionId, long consumedBandwidth, TransmissionMode mode, String involvedNode, V2xMessage v2XMessage)
      Creates a new StreamResult object.
      Parameters:
      regionId - Name of the region.
      consumedBandwidth - Bandwidth used for the stream.
      mode - Transmission mode for the stream.
      involvedNode - Node involved in the transmission.
      v2XMessage - Transmitted message.
  • Method Details

    • getRegionId

      public String getRegionId()
      Returns the name of the region where the stream is occurred.
      Returns:
      Name of the region.
    • getConsumedBandwidth

      public long getConsumedBandwidth()
    • getV2xMessage

      public V2xMessage getV2xMessage()
    • getMode

      public TransmissionMode getMode()
    • getInvolvedNode

      public String getInvolvedNode()
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object