Example #1
0
 public override SimulatedActor Spawn(SimulatedActor actor)
 {
     actors.Add(actor);
     actor.Id = currentActorId++;
     actor.atStartUp();
     actor.TimeSinceSystemStart = currentTime;
     return(actor);
 }
 /// <summary>
 /// Stops the actor passed as parameter, by removing it
 /// from the list of active actors.
 /// </summary>
 /// <param name="actor">the actor to be stopped</param>
 public abstract void Stop(SimulatedActor actor);
 /// <summary>
 /// Starts a new actor, i.e. assigns it an ID, registers
 /// it in the list of active actors and shall call
 /// <c>ISimulatedActor.atStartUp()</c>
 /// </summary>
 /// <param name="actor">actor to be started</param>
 /// <returns>actor which was started</returns>
 public abstract SimulatedActor Spawn(SimulatedActor actor);
Example #4
0
 public override void Stop(SimulatedActor actor)
 {
     actors.Remove(actor);
 }