Example #1
0
 /// <summary>
 /// Marks that a machine with <paramref name="machineId"/> is Active.
 /// </summary>
 public void MarkMachineActive(MachineId machineId)
 {
     if (_inactiveMachinesSet[machineId.Index])
     {
         _inactiveMachinesSet = (BitMachineIdSet)_inactiveMachinesSet.Remove(machineId);
     }
 }
Example #2
0
        /// <summary>
        /// Marks that a machine with <paramref name="machineId"/> is Active.
        /// </summary>
        public void MarkMachineActive(MachineId machineId)
        {
            if (_inactiveMachinesSet[machineId.Index])
            {
                SetInactiveMachines((BitMachineIdSet)_inactiveMachinesSet.Remove(machineId));

                BinManager?.AddLocation(machineId);
            }
        }
Example #3
0
        /// <summary>
        /// Marks that a machine with <paramref name="machineId"/> is Active.
        /// </summary>
        public BoolResult MarkMachineActive(MachineId machineId)
        {
            if (_inactiveMachinesSet[machineId.Index] || _closedMachinesSet[machineId.Index])
            {
                return(SetMachineStates((BitMachineIdSet)_inactiveMachinesSet.Remove(machineId), (BitMachineIdSet)_closedMachinesSet.Remove(machineId)));
            }

            return(BoolResult.Success);
        }