Exemple #1
0
        static void Main(string[] args)
        {
            pathNodeControl paths = pathNodeControl.Master();
            medNodeControl  meds  = medNodeControl.Master();

            paths.addPath("Path One");
            paths.addPath("Path Two");
            paths.addPath("Path Three");
            TimeSpan temp = new TimeSpan(0, 20, 0);

            meds.addMed("Saline", "20 mg", temp);

            TimeSpan temp2 = new TimeSpan(0, 10, 0);

            meds.addMed("Pulmozym", "10 mg", temp2);

            TimeSpan temp3 = new TimeSpan(0, 30, 0);

            meds.addMed("Vest", "Minnisota Protical", temp3);

            paths.addTimer("Path One", "Saline", "Saline");

            DateTime temp4 = new DateTime(2017, 11, 29, 18, 45, 55, 0);

            paths.addEvent("Path One", "Test", temp4);
            paths.startTimer("Path One");
        }
        public static medNodeControl Master()
        {
            if (master == null)
            {
                master = new medNodeControl();
            }

            return(master);
        }
 public Counter()
 {
     pathMaster = pathNodeControl.Master();
     medMaster  = medNodeControl.Master();
     Thread burner = new Thread(() => timerCallBack());
 }
Exemple #4
0
 public pathNodeControl()
 {
     firstPath = null;
     PS        = null;
     medMaster = medNodeControl.Master();
 }
Exemple #5
0
        /*
         * No getter and setter for TS, it will never be called out side this method
         */
        #endregion
        #region Constructors

        public timerNodeControl()
        {
            firstTimer = null;
            TS         = null;
            medMaster  = medNodeControl.Master();
        }