Class ReconfigurationExecutedEvent
- java.lang.Object
-
- org.palladiosimulator.simulizar.interpreter.listener.ReconfigurationExecutedEvent
-
public class ReconfigurationExecutedEvent extends Object
Notifier class that indicates that a reconfiguration was executed.
-
-
Constructor Summary
Constructors Constructor Description ReconfigurationExecutedEvent(BeginReconfigurationEvent beginReconfigurationEvent, EndReconfigurationEvent endReconfigurationEvent, Iterable<Notification> modelChanges)
Initializes a new instance of theReconfigurationExecutedEvent
class with the given arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDuration()
Gets the duration (expressed in simulation time units) of the reconfiguration.double
getFinishTime()
Gets the point in time (expressed in simulation time units) at which the reconfiguration terminated.
It always holds thatgetFinishTime() -getStartTime() >= 0
.Iterable<Notification>
getModelChanges()
Gets theNotification
s that are associated with this reconfiguration.EventResult
getReconfigurationResult()
Gets the result of the associated reconfiguration.double
getStartTime()
Gets the point in time (expressed in simulation time units) at which the reconfiguration started.
-
-
-
Constructor Detail
-
ReconfigurationExecutedEvent
public ReconfigurationExecutedEvent(BeginReconfigurationEvent beginReconfigurationEvent, EndReconfigurationEvent endReconfigurationEvent, Iterable<Notification> modelChanges)
Initializes a new instance of theReconfigurationExecutedEvent
class with the given arguments.- Parameters:
beginReconfigurationEvent
- TheBeginReconfigurationEvent
notification that was created when the corresponding reconfiguration had started.endReconfigurationEvent
- TheEndReconfigurationEvent
notification that was created upon finish of the corresponding reconfiguration.modelChanges
- AnIterable
ofNotification
s related to this reconfiguration.
-
-
Method Detail
-
getReconfigurationResult
public EventResult getReconfigurationResult()
Gets the result of the associated reconfiguration.- Returns:
- An
EventType
constant which the result of the reconfiguration. - See Also:
EndReconfigurationEvent.getReconfigurationEventResult()
-
getFinishTime
public double getFinishTime()
Gets the point in time (expressed in simulation time units) at which the reconfiguration terminated.
It always holds thatgetFinishTime() -getStartTime() >= 0
.- Returns:
- A non-negative double denoting the finish time.
-
getStartTime
public double getStartTime()
Gets the point in time (expressed in simulation time units) at which the reconfiguration started.
It always holds thatgetFinishTime() - getStartTime() >= 0
.- Returns:
- A non-negative double denoting the start time.
-
getDuration
public double getDuration()
Gets the duration (expressed in simulation time units) of the reconfiguration.- Returns:
- A non-negative double denoting the duration.
-
getModelChanges
public Iterable<Notification> getModelChanges()
Gets theNotification
s that are associated with this reconfiguration.
In general, a notification is concerned with a particular model change.- Returns:
- AN
Iterable
consisting of all the notifications.
-
-