Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 //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;
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
        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;
        }
Ejemplo n.º 6
0
        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;
        }
Ejemplo n.º 7
0
 //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;
 }
Ejemplo n.º 8
0
 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;
 }