Example #1
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;
     }
 }
Example #2
0
        public void actionExp()
        {
            if (exposureSlot.isExposureAction())
            {
                if (isSuccessfull())
                {
                    exposureSlot.experimentAction();
                    ++armOps;
                    switch (MEPlabState)
                    {
                    case MEPLabStatus.READY:
                        playAnimation(startExpAnimName, 1f, 0f);
                        MEPlabState = MEPLabStatus.RUNNING;
                        break;

                    case MEPLabStatus.RUNNING:
                        playAnimation(startExpAnimName, -1f, 1f);
                        MEPlabState = MEPLabStatus.READY;
                        break;
                    }
                }
                else
                {
                    switch (MEPlabState)
                    {
                    case MEPLabStatus.READY:
                        errorOnStart();
                        break;

                    case MEPLabStatus.RUNNING:
                        errorOnStop();
                        break;
                    }
                }
            }
            else
            {
                exposureSlot.experimentAction();
            }
        }
Example #3
0
 public void actionPRExp()
 {
     printerSlot.experimentAction();
 }
Example #4
0
 public void actionCIRExp()
 {
     cirSlot.experimentAction();
 }
Example #5
0
 public void actionFIRExp()
 {
     firSlot.experimentAction();
 }
Example #6
0
 public void actionUSUExp()
 {
     usuSlot.experimentAction();
 }
Example #7
0
 public void actionMSGExp()
 {
     msgSlot.experimentAction();
 }