Exemplo n.º 1
0
        public override void installExperiment(ExperimentData exp)
        {
            switch (exp.getEquipmentNeeded())
            {
            case EquipmentRacks.MSG:
                if (msgSlot.isEquipmentInstalled() && msgSlot.experimentSlotFree())
                {
                    msgSlot.installExperiment(exp);
                    msgStatus = exp.getAbbreviation();
                    Fields["msgStatus"].guiActive = true;
                }
                else
                {
                    NE_Helper.logError("installExperiment, installed: " + msgSlot.isEquipmentInstalled() + "; free: " + msgSlot.experimentSlotFree());
                }
                break;

            case EquipmentRacks.USU:
                if (usuSlot.isEquipmentInstalled() && usuSlot.experimentSlotFree())
                {
                    usuSlot.installExperiment(exp);
                    usuStatus = exp.getAbbreviation();
                    Fields["usuStatus"].guiActive = true;
                }
                else
                {
                    NE_Helper.logError("installExperiment, installed: " + usuSlot.isEquipmentInstalled() + "; free: " + usuSlot.experimentSlotFree());
                }
                break;
            }
        }
Exemplo n.º 2
0
 public override void installExperiment(ExperimentData exp)
 {
     if (exp.getEquipmentNeeded() == EquipmentRacks.EXPOSURE)
     {
         exposureSlot.installExperiment(exp);
         experimentName = exp.getAbbreviation() + ": " + exp.stateString();
     }
 }
Exemplo n.º 3
0
        public override void installExperiment(ExperimentData exp)
        {
            switch (exp.getEquipmentNeeded())
            {
            case EquipmentRacks.CIR:
                if (cirSlot.isEquipmentInstalled() && cirSlot.experimentSlotFree())
                {
                    cirSlot.installExperiment(exp);
                    cirStatus = exp.getAbbreviation();
                    Fields["cirStatus"].guiActive = true;
                }
                else
                {
                    NE_Helper.logError("installExperiment, installed: " + cirSlot.isEquipmentInstalled() + "; free: " + cirSlot.experimentSlotFree());
                }
                break;

            case EquipmentRacks.FIR:
                if (firSlot.isEquipmentInstalled() && firSlot.experimentSlotFree())
                {
                    firSlot.installExperiment(exp);
                    ffrStatus = exp.getAbbreviation();
                    Fields["ffrStatus"].guiActive = true;
                }
                else
                {
                    NE_Helper.logError("installExperiment, installed: " + firSlot.isEquipmentInstalled() + "; free: " + firSlot.experimentSlotFree());
                }
                break;

            case EquipmentRacks.PRINTER:
                if (printerSlot.isEquipmentInstalled() && printerSlot.experimentSlotFree())
                {
                    printerSlot.installExperiment(exp);
                    prStatus = exp.getAbbreviation();
                    Fields["prStatus"].guiActive = true;
                }
                else
                {
                    NE_Helper.logError("installExperiment, installed: " + printerSlot.isEquipmentInstalled() + "; free: " + printerSlot.experimentSlotFree());
                }
                break;
            }
        }
Exemplo n.º 4
0
 public override void installExperiment(ExperimentData exp)
 {
     switch (exp.getEquipmentNeeded())
     {
     case EquipmentRacks.KEMINI:
         if (keminiSlot.isEquipmentInstalled() && keminiSlot.experimentSlotFree())
         {
             keminiSlot.installExperiment(exp);
             keminiStatus = exp.getAbbreviation();
             Fields["keminiStatus"].guiActive = true;
             keminiSlot.experimentAction();
         }
         else
         {
             NE_Helper.logError("installExperiment, installed: " + keminiSlot.isEquipmentInstalled() + "; free: " + keminiSlot.experimentSlotFree());
         }
         break;
     }
 }