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

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