Beispiel #1
0
        public static InjectAbsorb create(AbstractCanDevice nodetem, double ttime, Enterclose[] iinjects, int sspeed, params int[] aabsorbs)
        {
            InjectAbsorb acttem = InjectAbsorb.create(ttime, iinjects, sspeed, aabsorbs);

            acttem.node = nodetem;
            return(acttem);
        }
Beispiel #2
0
 public static InjectAbsorb getInstance()
 {
     if (instance == null)
     {
         instance = new InjectAbsorb();
     }
     return(instance);
 }
Beispiel #3
0
        public static InjectAbsorb create(double ttime, Enterclose[] iinjects, int sspeed, params int[] aabsorbs)
        {
            InjectAbsorb acttem = new InjectAbsorb();

            acttem.injects = iinjects;
            acttem.absorbs = (int[])aabsorbs.Clone();
            acttem.time    = ttime;
            acttem.speed   = sspeed;
            return(acttem);
        }