public final class CalculatorHelper extends Object
AbstractScheduledResource
and IPassiveResource
.
TODO Some calculators are created in AbstractMain. Why is that? [Lehrig]Constructor and Description |
---|
CalculatorHelper() |
Modifier and Type | Method and Description |
---|---|
static org.palladiosimulator.probeframework.probes.EventProbeList |
getEventProbeSetWithCurrentTime(org.palladiosimulator.metricspec.MetricSetDescription metricSetDescription,
ISimulationControl control,
org.palladiosimulator.probeframework.probes.EventProbe<?> additionalProbe) |
static org.palladiosimulator.probeframework.probes.TriggeredProbeList |
getTriggeredProbeSetWithCurrentTime(org.palladiosimulator.metricspec.MetricSetDescription metricSetDescription,
ISimulationControl control,
org.palladiosimulator.probeframework.probes.TriggeredProbe additionalProbe) |
static void |
setupActiveResourceStateCalculator(AbstractScheduledResource scheduledResource,
SimuComModel model)
Convenient method in case measuring point has to be created anew.
|
static void |
setupActiveResourceStateCalculator(AbstractScheduledResource scheduledResource,
SimuComModel model,
org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint,
int replicaID)
Sets up a
StateCalculator for the specified resource. |
static void |
setupDemandCalculator(AbstractScheduledResource scheduledResource,
SimuComModel model)
Convenient method in case measuring point has to be created anew.
|
static void |
setupDemandCalculator(AbstractScheduledResource scheduledResource,
SimuComModel model,
org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
Sets up a
DemandCalculator for the specified resource. |
static void |
setupHoldTimeCalculator(IPassiveResource resource,
SimuComModel model)
Convenient method in case measuring point has to be created anew.
|
static void |
setupHoldTimeCalculator(IPassiveResource resource,
SimuComModel model,
org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
Sets up a HoldingTimeCalculator for the specified resource.
|
static void |
setupOverallUtilizationCalculator(AbstractScheduledResource resource,
SimuComModel model)
Convenient method in case measuring point has to be created anew.
|
static void |
setupOverallUtilizationCalculator(AbstractScheduledResource scheduledResource,
SimuComModel model,
org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint) |
static void |
setupPassiveResourceStateCalculator(IPassiveResource resource,
SimuComModel model)
Convenient method in case measuring point has to be created anew.
|
static void |
setupPassiveResourceStateCalculator(IPassiveResource resource,
SimuComModel model,
org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint) |
static void |
setupWaitingTimeCalculator(IPassiveResource resource,
SimuComModel model)
Convenient method in case measuring point has to be created anew.
|
static void |
setupWaitingTimeCalculator(IPassiveResource resource,
SimuComModel model,
org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
Sets up a WaitingTimeCalculator for the specified resource.
|
public static void setupWaitingTimeCalculator(IPassiveResource resource, SimuComModel model, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
IPassiveResourceSensor
will be registered at the resource which gets notified of
events that are relevant for calculating the waiting time. When such an event arrives, an
appropriate BasicMeasurement
will be taken and published at the
ISampleBlackboard
.resource
- the resourcemodel
- the Simucom Modelpublic static void setupWaitingTimeCalculator(IPassiveResource resource, SimuComModel model)
resource
- the resourcemodel
- the Simucom Modelpublic static void setupHoldTimeCalculator(IPassiveResource resource, SimuComModel model, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
IPassiveResourceSensor
will be registered at the resource which gets notified of
events that are relevant for calculating the hold time. When such an event arrives, an
appropriate BasicMeasurement
will be taken and published at the
ISampleBlackboard
.r
- the resourcepublic static void setupHoldTimeCalculator(IPassiveResource resource, SimuComModel model)
resource
- the resourcemodel
- the Simucom Modelpublic static void setupDemandCalculator(AbstractScheduledResource scheduledResource, SimuComModel model, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
DemandCalculator
for the specified resource. Also a IDemandListener
will be registered at the resource which gets notified of events that are relevant for
calculating the demanded time. When such an event arrives, an appropriate
BasicMeasurement
will be taken and published at the ISampleBlackboard
.scheduledResource
- the resourcepublic static void setupDemandCalculator(AbstractScheduledResource scheduledResource, SimuComModel model)
scheduledResource
- the resourcemodel
- the Simucom Modelpublic static void setupActiveResourceStateCalculator(AbstractScheduledResource scheduledResource, SimuComModel model, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, int replicaID)
StateCalculator
for the specified resource. Also a IStateListener
will be registered at the resource which gets notified of events that are relevant for
calculating the state. When such an event arrives, an appropriate BasicMeasurement
will be taken and published at the ISampleBlackboard
.scheduledResource
- the resourcepublic static void setupActiveResourceStateCalculator(AbstractScheduledResource scheduledResource, SimuComModel model)
resource
- the scheduledResourcemodel
- the Simucom Modelpublic static void setupOverallUtilizationCalculator(AbstractScheduledResource scheduledResource, SimuComModel model, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
public static void setupOverallUtilizationCalculator(AbstractScheduledResource resource, SimuComModel model)
scheduledResource
- the resourcemodel
- the Simucom Modelpublic static void setupPassiveResourceStateCalculator(IPassiveResource resource, SimuComModel model, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
public static void setupPassiveResourceStateCalculator(IPassiveResource resource, SimuComModel model)
scheduledResource
- the resourcemodel
- the Simucom Modelpublic static org.palladiosimulator.probeframework.probes.TriggeredProbeList getTriggeredProbeSetWithCurrentTime(org.palladiosimulator.metricspec.MetricSetDescription metricSetDescription, ISimulationControl control, org.palladiosimulator.probeframework.probes.TriggeredProbe additionalProbe)
public static org.palladiosimulator.probeframework.probes.EventProbeList getEventProbeSetWithCurrentTime(org.palladiosimulator.metricspec.MetricSetDescription metricSetDescription, ISimulationControl control, org.palladiosimulator.probeframework.probes.EventProbe<?> additionalProbe)