Phase 6. Finishing the
In this phase we will add the final details of
elements. We will finish
defining the transport movement
between the maintenance center and turbines.
Define the transport
- Double-click Transport
in the model tree to open its diagram. There you can find the
statechart we have added before. Now we can configure its
- Select the state AtCenter.
We need to specify its Entry
- Three other
do not have
any specific properties. We will define the logic of
transport movement using different kinds of transitions.
- The transition from AtCenter
is triggered by Message
of type ServiceRequest.
Since the transition
is fired Unconditionally,
you need to specify Action
that the transport should take: move to the turbine coordinates.
- The transition from MovingToTurbine
is triggered by Agent arrival
A lorry or helicopter
that reached the broken turbine will start their tasks immediately
after arrival. When the repair is finished and so the turbine
signals, the transport can go home.
- The next transition goes
The action to
go back to the maintenance center is
triggered by Timeout .
- In the figure above you see
that the last transition, from MovingToMC
is triggered by Agent
When this happens,
the transport is back at the maintenance center and remains available
until another turbine needs service.
If you open now Truck
Helicopter you will
that there is Transport
projection. These elements are visible here and you can
select them to see their properties for your convenience, but they are
Run the model. Initially all turbines are operating (indicated
Then we can
see how a truck moves to the turbine that
needs scheduled maintenance (yellow
and the helicopters are moving to the turbines which are out of service
to perform urgent repair works.
We have finished defining logic of the model, let us
some animation elements, configure 3D animation view and explore the
model during run-time.
Defining Turbine behaviour
Running and exploring the model