//------------------------------------------------------------------------------------------------------------------------ void OnChangedStateCb(Thing thing, Port port, string state) { DebugEx.TraceLog("On ChangedStatecb...."); }
void OnChangedStateCb(Thing thing, Port port, string state, bool isEvent) { }
public Port DeepClone() { var newPort = new Port(PortKey, Type, ioDirection); newPort.Update_Except_States(this); newPort.State = State; newPort.RevNum = RevNum; return newPort; }
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; } }
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; }
void OnChangedStateCb(Thing thing, Port port, string state) { }