public Port(PortKey portKey, ePortType type, ioPortDirection ioDirection, string portmodelid = null) { this.PortKey = portKey; this.Type = type; this.ioDirection = ioDirection; this.State = null; this.PortModelId = portmodelid; }
//should be used only by deserializer public Port() { this.Type = ePortType.Undefined; this.ioDirection = ioPortDirection.Undefined; this.PortKey = default(PortKey); this.PortModelId = default(string); this.Color = "#0000FF"; this.Size = 18; }
public Port(PortKey portKey, ePortType type, ioPortDirection ioDirection, string portmodelid = null) { this.PortKey = portKey; this.Type = type; this.State = null; this.PortModelId = portmodelid; DebugEx.Assert(ioDirection != ioPortDirection.Undefined, $"Undefined IO direction for port {portKey}"); this.ioDirection = ioDirection; }
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; }
public void Update_Except_States(Port otherPort) { this.Name = otherPort.Name; this.Description = otherPort.Description; this.Type = otherPort.Type; this.Semantics = otherPort.Semantics; DebugEx.Assert(otherPort.ioDirection != ioPortDirection.Undefined, $"Undefined IO direction for port {otherPort.PortKey}"); if (otherPort.ioDirection != ioPortDirection.Undefined) { this.ioDirection = otherPort.ioDirection; } this.PortKey = otherPort.PortKey; this.ConfFlags = otherPort.ConfFlags; this.PortModelId = otherPort.PortModelId; }
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; }
//should be used only by deserializer public Port() { this.Type = ePortType.Undefined; this.ioDirection = ioPortDirection.Undefined; this.PortKey = default(PortKey); this.PortModelId = default(string); this.Color = "#0000FF"; this.Size = 18; }
public Port(PortKey portKey, ePortType type, ioPortDirection ioDirection, string portmodelid = null) { this.PortKey = portKey; this.Type = type; this.ioDirection = ioDirection; this.State = null; this.PortModelId = portmodelid; }