Class SimulationTimeReached

java.lang.Object
org.palladiosimulator.analyzer.slingshot.common.events.AbstractEvent
org.palladiosimulator.analyzer.slingshot.common.events.AbstractSimulationEvent
org.palladiosimulator.analyzer.slingshot.behavior.spd.data.SimulationTimeReached
All Implemented Interfaces:
SpdBasedEvent, org.palladiosimulator.analyzer.slingshot.common.events.DESEvent, org.palladiosimulator.analyzer.slingshot.common.events.SlingshotEvent

public final class SimulationTimeReached extends org.palladiosimulator.analyzer.slingshot.common.events.AbstractSimulationEvent implements SpdBasedEvent
An event that is scheduled at an exact simulation time. In context of SPD, this is needed especially for triggers with simulation time stimulus. This event also carries a necessary target group (identifier) in order to correctly identify whether this event belongs to the right scaling policy.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimulationTimeReached(String targetGroupId, double simulationTime)
     
    SimulationTimeReached(String targetGroupId, double simulationTime, double delay)
    Constructs a new simulation time reached event that is scheduled at exactly simulationTime and a possibly a delay.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.palladiosimulator.analyzer.slingshot.common.events.AbstractSimulationEvent

    delay, getName, setTime, time

    Methods inherited from class org.palladiosimulator.analyzer.slingshot.common.events.AbstractEvent

    getId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.palladiosimulator.analyzer.slingshot.common.events.DESEvent

    delay, setTime, time

    Methods inherited from interface org.palladiosimulator.analyzer.slingshot.common.events.SlingshotEvent

    getId, getName
  • Constructor Details

    • SimulationTimeReached

      public SimulationTimeReached(String targetGroupId, double simulationTime, double delay)
      Constructs a new simulation time reached event that is scheduled at exactly simulationTime and a possibly a delay. The constructed event should then be scheduled AFTER the current simulation time. If the specified simulation time is in the past, an exception at the event bus might occur.
      Parameters:
      targetGroupId - The target group identifier this event belongs to.
      simulationTime - A positive number that specifies the exact simulation time that should be reached.
      delay - A non-negative number specifying a delay after the simulation time.
    • SimulationTimeReached

      public SimulationTimeReached(String targetGroupId, double simulationTime)
  • Method Details

    • getTargetGroupId

      public String getTargetGroupId()