Cancel
Showing results for
Did you mean:

# How to know the number of collisions between transporters each other

Pioneer

Dear Plant Simulation Expert,

I have a question on the number of collisions between transporters.

For instance, there are many inter-sections on the lanes, in case of that, could i check the number of collisions between transporters each other ?

as I know, there is a method 'collided' to just show true or not(i.e collided or not).

But, if collided, then,  I want to know the number of collisions.

BR,

Beagle.

2 REPLIES 2

# Re: How to know the number of collisions between transporters each other

Gears Esteemed Contributor

you can create your own statistical value for this case:

insert into the transporter in the class library a user defined attribute (e.g. statNumCollided: integer).

Add an observer for collided to the transporter in the class library;

```param Attribut: string, oldValue: any

if oldValue = false then
self.~.statnumCollided:=
self.~.statNumCollided+1
end```
 Steffen Bangsowfreelance simulation specialist  web: www.bangsow.eumail: steffen@bangsow.net

# Re: How to know the number of collisions between transporters each other

Pioneer

Dear Mr.Steffen Bangsow,

Thank you for your kind & fast feedback !

BR,

Beagle.