Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

How to know the number of collisions between transporters each other

Pioneer
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.

 

Thanks in advance.

 

 

BR,

Beagle.

2 REPLIES 2

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

Gears Esteemed Contributor Gears Esteemed Contributor
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 Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

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

Pioneer
Pioneer

Dear Mr.Steffen Bangsow,

 

 

Thank you for your kind & fast feedback !

 

BR,

Beagle.