示例#1
0
 //------------------------------------------------------------------------------------------------------------------------
 void OnChangedStateCb(Thing thing, Port port, string state)
 {
     DebugEx.TraceLog("On ChangedStatecb....");
 }
示例#2
0
 void OnChangedStateCb(Thing thing, Port port, string state, bool isEvent)
 {
 }
示例#3
0
文件: Port.cs 项目: yodiwo/plegma
 public Port DeepClone()
 {
     var newPort = new Port(PortKey, Type, ioDirection);
     newPort.Update_Except_States(this);
     newPort.State = State;
     newPort.RevNum = RevNum;
     return newPort;
 }
示例#4
0
文件: Port.cs 项目: yodiwo/plegma
        public void Update(Port otherPort)
        {
            Update_Except_States(otherPort);

            if (otherPort.RevNum >= RevNum || otherPort.RevNum == RevNum_Initialize)
            {
                State = otherPort.State;
                RevNum = otherPort.RevNum == RevNum_Initialize ? RevNum++ : otherPort.RevNum;
            }
        }
示例#5
0
文件: Port.cs 项目: yodiwo/plegma
        public void Update_Except_States(Port otherPort)
        {
            this.Name = otherPort.Name;
            this.Description = otherPort.Description;
            this.Type = otherPort.Type;
            this.Semantics = otherPort.Semantics;
            this.ioDirection = otherPort.ioDirection;

            this.PortKey = otherPort.PortKey;
            this.ConfFlags = otherPort.ConfFlags;
            this.PortModelId = otherPort.PortModelId;
        }
示例#6
0
 void OnChangedStateCb(Thing thing, Port port, string state)
 {
 }