Package org.eclipse.mosaic.fed.cell.viz
Class OnDemandPerRegionBandwidthMeasurements
- java.lang.Object
-
- org.eclipse.mosaic.fed.cell.viz.OnDemandPerRegionBandwidthMeasurements
-
- All Implemented Interfaces:
StreamListener
public class OnDemandPerRegionBandwidthMeasurements extends Object implements StreamListener
Subclass ofStreamListener
which generates instances ofPerRegionBandwidthMeasurement
s only if needed. Furthermore, it uses a map to lookup requiredPerRegionBandwidthMeasurement
instances.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.mosaic.fed.cell.viz.StreamListener
StreamListener.StreamParticipant, StreamListener.StreamProperties
-
-
Constructor Summary
Constructors Constructor Description OnDemandPerRegionBandwidthMeasurements(File parentDir, List<CMobileNetworkProperties> regions)
Creates a newOnDemandPerRegionBandwidthMeasurements
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
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 Detail
-
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
-
-