Package org.eclipse.mosaic.fed.cell.viz
Class OnDemandPerRegionBandwidthMeasurements
java.lang.Object
org.eclipse.mosaic.fed.cell.viz.OnDemandPerRegionBandwidthMeasurements
- All Implemented Interfaces:
StreamListener
Subclass of
StreamListener
which generates instances of PerRegionBandwidthMeasurement
s only if needed.
Furthermore, it uses a map to lookup required PerRegionBandwidthMeasurement
instances.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.mosaic.fed.cell.viz.StreamListener
StreamListener.StreamParticipant, StreamListener.StreamProperties
-
Constructor Summary
ConstructorsConstructorDescriptionOnDemandPerRegionBandwidthMeasurements
(File parentDir, List<CMobileNetworkProperties> regions) Creates a newOnDemandPerRegionBandwidthMeasurements
object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
The stream listener finishes the listening of the channel.void
messageSent
(StreamListener.StreamParticipant sender, StreamListener.StreamParticipant receiver, StreamListener.StreamProperties properties) This method allows to exchange messages between a sender and a receiver as stream and it also includes properties(bandwidth, application class ) of the stream.
-
Constructor Details
-
OnDemandPerRegionBandwidthMeasurements
public OnDemandPerRegionBandwidthMeasurements(File parentDir, List<CMobileNetworkProperties> regions) Creates a newOnDemandPerRegionBandwidthMeasurements
object.- Parameters:
parentDir
- The parent directory for bandwidth measurements.regions
- List of the regions.
-
-
Method Details
-
messageSent
public void messageSent(StreamListener.StreamParticipant sender, StreamListener.StreamParticipant receiver, StreamListener.StreamProperties properties) Description copied from interface:StreamListener
This method allows to exchange messages between a sender and a receiver as stream and it also includes properties(bandwidth, application class ) of the stream.- Specified by:
messageSent
in interfaceStreamListener
- Parameters:
sender
- The sender of the message.receiver
- The receiver of the message.properties
- Includes properties of the stream.
-
finish
public void finish()Description copied from interface:StreamListener
The stream listener finishes the listening of the channel.- Specified by:
finish
in interfaceStreamListener
-