예제 #1
0
 public void Reload(NodePort port)
 {
     fieldName      = port.fieldName;
     direction      = port.direction;
     capacity       = port.capacity;
     typeConstraint = port.typeConstraint;
     DataType       = port.DataType;
 }
예제 #2
0
 public NodePort(NodePort _port)
 {
     fieldName         = _port.fieldName;
     direction         = _port.direction;
     multiple          = _port.multiple;
     typeConstraint    = _port.typeConstraint;
     typeQualifiedName = _port.typeQualifiedName;
 }
예제 #3
0
 public void Reload(NodePort port)
 {
     fieldName         = port.fieldName;
     direction         = port.direction;
     multiple          = port.multiple;
     typeConstraint    = port.typeConstraint;
     typeQualifiedName = port.typeQualifiedName;
 }
예제 #4
0
 public NodePort(NodePort port, NodeData node)
 {
     fieldName      = port.fieldName;
     direction      = port.direction;
     capacity       = port.capacity;
     typeConstraint = port.typeConstraint;
     DataType       = port.DataType;
     this.node      = node;
 }
예제 #5
0
        public NodePort(FieldInfo _fieldInfo, PortAttribute _portAttribute)
        {
            fieldName      = _fieldInfo.Name;
            multiple       = _portAttribute.IsMulti;
            direction      = _portAttribute.Direction;
            typeConstraint = _portAttribute.TypeConstraint;

            if (Utility_Attribute.TryGetFieldAttribute(_fieldInfo.DeclaringType, _fieldInfo.Name, out PortTypeAttribute typeAttribute))
            {
                typeQualifiedName = typeAttribute.portType.AssemblyQualifiedName;
            }
            else
            {
                typeQualifiedName = _fieldInfo.FieldType.AssemblyQualifiedName;
            }
        }
예제 #6
0
        public NodePort(FieldInfo fieldInfo, string name, PortDirection direction)
        {
            fieldName = name;

            if (AttributeCache.TryGetFieldAttribute(fieldInfo.DeclaringType, fieldInfo.Name, out PortAttribute attribute))
            {
                capacity       = attribute.Capacity;
                typeConstraint = attribute.TypeConstraint;
            }
            this.direction = direction;

            if (attribute != null && attribute.CustomPortConnectionType != null)
            {
                DataType = attribute.CustomPortConnectionType;
            }
            else
            {
                DataType = fieldInfo.FieldType;
            }
        }
예제 #7
0
 public OutputAttribute(bool _isMulti = true, PortTypeConstraint _typeConstraint = PortTypeConstraint.Inherited) : base(PortDirection.Output, _isMulti, _typeConstraint)
 {
 }
예제 #8
0
 public PortAttribute(PortDirection _direction, bool _isMulti = true, PortTypeConstraint _typeConstraint = PortTypeConstraint.Inherited)
 {
     Direction      = _direction;
     IsMulti        = _isMulti;
     TypeConstraint = _typeConstraint;
 }