Class Phase
java.lang.Object
nl.tudelft.simulation.dsol.formalisms.devs.esdevs.Phase
- All Implemented Interfaces:
Serializable
Phase class. The Phase is used in phase explicit DEVS models. Phases partition the state space into regions, where events are
used to transfer the state from one phase to another phase. An example is a machine that can be in three different phases:
idle, active, or failed. There are explicit events to transfer the model from one phase to another. A model or component is
always in exactly one phase, and a transition diagram can be used to depict the transitions between phases.
Copyright (c) 2009-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Mamadou Seck
, Alexander Verbraeck - See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getName()
void
setLifeTime
(double lifeTime) Sets the lifetime of the phase.toString()
-
Constructor Details
-
Phase
The constructor of a new phase.- Parameters:
name
- String; the identifier of the phase
-
-
Method Details
-
toString
-
setLifeTime
public void setLifeTime(double lifeTime) Sets the lifetime of the phase.- Parameters:
lifeTime
- double; the lifetime of the phase
-
getLifeTime
public double getLifeTime()- Returns:
- the lifetime of the phase.
-
getName
- Returns:
- name; the identifier of the phase
-