Tutorial Exercise 3

Exercise Information

A station receives locomotives at intervals of 30 seconds to unload cylinders, these cylinders are put on a queue to be later processed by 3 Processors (processing time of 10 seconds), those cylinders are then discarded. Each cylinder weighs 50 kilograms and the locomotive transports 10 cylinders on each trip.

Creating objects

In order to achieve the solution for the problem, you should create the following objects:

  • Create one Source Train.
  • Create three Rails.
  • Connect Source Train to the Rail1 ConnectPoint and then connect Rail1 to Rail2 and Rail2 to Rail3 via proximity.
  • Create one Rail Control Point and put one on Rail2.
  • Create one Station, then connect its center port to the Rail Control Point.
  • Create one queue and connects the Station to it.
  • Create three Processors and connect the queue to them.
  • Create a Sink and connect the three processors to it.
  • Create a Sink and put it next to Rail3, no need to connect it.
Exercise3Objs

Your model should be looking like this.

Exercise3Objs

Objects Configuration

Configure your Station as shown in the image below.

exercise3station

Processflow Configuration

In order to achieve the solution for the problem, you should create the following processflow tasks:

  • Create a Source.
  • Create a CreateTrain.
  • Create a MoveTrain.
  • Create a UnloadWagon.
  • Create a MoveTrain.
  • Create a DestroyTrain
  • Create a Sink.

Your processflow should be looking like this.

Exercise3PF

To configure your processflow tasks follow the steps:

  • On source, set the Inter-Arrivaltime to 30.
  • On CreateTrain, points the SourceTrain reference to your SourceTrain and set the Locomotive Speed to the value 2. Set maxWeight and currentWeight to 500.
  • On MoveTrain, set train reference to token.train and destiny to RailControlPoint1.
  • On UnloadWagon set train reference to token.train and ControlPoint reference to RailControlPoint1.
  • On second MoveTrain, set train reference to token.train and destiny to Rail3.
  • On DestroyTrain set train reference to token.train and Sink reference to the Sink next to Rail3.
Exercise3PF

With this configuration your model is ready.