예제 #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)
 {
 }