Commit 40e189e3 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

Source updated so that all the Entities are kept on a list for post processing...

Source updated so that all the Entities are kept on a list for post processing reasons. Maybe this is memory consuming and we should have it as a global option
parent 5689407f
......@@ -39,7 +39,8 @@ class G:
Rnd = Random(seed) #random number generator
ObjList=[] #a list that holds all the simulation objects
ObjList=[] #a list that holds all the CoreObjects
EntityList=[] #a list that holds all the Entities
numberOfReplications=1 #the number of replications default=1
confidenceLevel=0.9 #the confidence level default=90%
......
......@@ -109,6 +109,7 @@ class Source(CoreObject):
entity.creationTime=now() # assign the current simulation time as the Entity's creation time
entity.startTime=now() # assign the current simulation time as the Entity's start time
entity.currentStation=self # update the current station of the Entity
G.EntityList.append(entity)
self.outputTrace(entity.name, "generated") # output the trace
activeObjectQueue.append(entity) # append the entity to the resource
self.numberOfArrivals+=1 # we have one new arrival
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment