Class ReconfigurationExecutedEvent
java.lang.Object
org.palladiosimulator.simulizar.interpreter.listener.ReconfigurationExecutedEvent
Notifier class that indicates that a reconfiguration was executed.
-
Constructor Summary
ConstructorDescriptionReconfigurationExecutedEvent
(BeginReconfigurationEvent beginReconfigurationEvent, EndReconfigurationEvent endReconfigurationEvent, Iterable<Notification> modelChanges) Initializes a new instance of theReconfigurationExecutedEvent
class with the given arguments. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the duration (expressed in simulation time units) of the reconfiguration.double
Gets the point in time (expressed in simulation time units) at which the reconfiguration terminated.
It always holds thatgetFinishTime() -getStartTime() >= 0
.Gets theNotification
s that are associated with this reconfiguration.Gets the result of the associated reconfiguration.double
Gets the point in time (expressed in simulation time units) at which the reconfiguration started.
-
Constructor Details
-
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 Details
-
getReconfigurationResult
Gets the result of the associated reconfiguration.- Returns:
- An
EventType
constant which the result of the reconfiguration. - See Also:
-
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
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.
-