12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using Aitex.Sorter.Common;
- using MECF.Framework.Common.CommonData;
- using MECF.Framework.Common.Equipment;
- using System;
- using System.Runtime.Serialization;
- namespace athosCore
- {
- [Serializable]
- [DataContract]
- public class JetRobotMoveInfo : NotifiableItem
- {
- public JetRobotMoveInfo(RobotAction action = RobotAction.None, Hand hand = Hand.Blade1, ModuleName target = ModuleName.Robot, int slot = 0)
- {
- Action = action;
- HandTarget = hand;
- TargetModule = target;
- Slot = slot;
- }
- public bool Equals(JetRobotMoveInfo target)
- {
- return target.Action == this.Action && target.HandTarget == this.HandTarget && target.TargetModule == this.TargetModule && target.Slot == this.Slot;
- }
- private ModuleName targetModule;
- [DataMember]
- public ModuleName TargetModule
- {
- get { return targetModule; }
- set
- {
- targetModule = value;
- InvokePropertyChanged("TargetModule");
- }
- }
- private Hand handTarget;
- [DataMember]
- public Hand HandTarget
- {
- get => handTarget;
- set
- {
- handTarget = value;
- InvokePropertyChanged("HandTarget");
- }
- }
- private RobotAction action;
- [DataMember]
- public RobotAction Action
- {
- get { return action; }
- set
- {
- action = value;
- InvokePropertyChanged("Action");
- }
- }
- private int slot;
- [DataMember]
- public int Slot
- {
- get { return slot; }
- set
- {
- slot = value;
- InvokePropertyChanged("Slot");
- }
- }
- }
- }
|