Example #1
0
 public LognormalDistribution(SimSharp.Simulation environment, double mean, double std, int seed)
 {
     _environment = environment;
     _rng         = new PcgRandom(seed);
     Mean         = mean;
     StdDev       = std;
 }
Example #2
0
 public CraneScheduleStoreGet(SimSharp.Simulation environment, ICraneAgent agent)
     : base(environment)
 {
     Time  = environment.Now;
     Owner = environment.ActiveProcess;
     Agent = agent;
 }
Example #3
0
 public TriangularDistribution(SimSharp.Simulation environment, double low, double high, double mode)
 {
     _environment = environment;
     Low          = low;
     High         = high;
     Mode         = mode;
 }
Example #4
0
 public TriangularDistribution(SimSharp.Simulation environment, double low, double high, double mode, int seed)
 {
     _environment = environment;
     _rng         = new PcgRandom(seed);
     Low          = low;
     High         = high;
     Mode         = mode;
 }
Example #5
0
 public LognormalDistribution(SimSharp.Simulation environment, double mean, double std)
 {
     _environment = environment;
     Mean         = mean;
     StdDev       = std;
 }
Example #6
0
 protected StackingEvent(SimSharp.Simulation environment, Action <Event> callback, Action <Event> cancel) : base(environment)
 {
     CallbackList.Add(callback);
     Time    = environment.Now;
     _cancel = cancel;
 }
Example #7
0
 protected Condition(Simulation environment, params Event[] events)
     : this(environment, (IEnumerable <Event>)events)
 {
 }
Example #8
0
        public static TimeStamp NowTS(this SimSharp.Simulation sim)
        {
            var ms = Math.Round((sim.Now - sim.StartDate).TotalMilliseconds);

            return(new TimeStamp((long)ms));
        }
Example #9
0
 public AllOf(Simulation environment, IEnumerable <Event> events) : base(environment, events)
 {
 }
Example #10
0
 public AllOf(Simulation environment, params Event[] events) : base(environment, events)
 {
 }