Exemplo n.º 1
0
 public Entity(string symbol, MathIdentifier id, InfixNotation notation, int precedence, string[] inputSignals, string[] outputSignals)
     : this(symbol, id, notation, precedence, inputSignals, outputSignals, new string[0])
 {
 }
Exemplo n.º 2
0
 public bool EqualsById(MathIdentifier otherStructureId)
 {
     return(TypeId.Equals(otherStructureId));
 }
Exemplo n.º 3
0
 public bool EqualsById(MathIdentifier otherEntityId)
 {
     return(EntityId.Equals(otherEntityId));
 }
Exemplo n.º 4
0
 public Entity(string symbol, MathIdentifier id, InfixNotation notation, int precedence, bool isGeneric)
     : this(symbol, id, notation, precedence, isGeneric, new string[0])
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// True if the signal depends on a port with the specified entity.
 /// </summary>
 public override bool DependsOn(MathIdentifier portEntity)
 {
     return(Service <IScanner> .Instance.ExistsPort(this, delegate(MathNet.Symbolics.Port p) { return p.Entity.EntityId.Equals(portEntity); }, true));
 }
Exemplo n.º 6
0
 /// <summary>Checks whether a property is set.</summary>
 public override bool HasProperty(MathIdentifier propertyId)
 {
     return(_constraints.ContainsProperty(propertyId) || _properties.ContainsProperty(propertyId));
 }
Exemplo n.º 7
0
        private MathNet.Symbolics.Port _port; // = null;

        protected Architecture(MathIdentifier id, MathIdentifier entityId, bool isMathematicalOperator)
        {
            _id       = id;
            _entityId = entityId;
            _isMathematicalOperator = isMathematicalOperator;
        }
Exemplo n.º 8
0
 public bool DependsOn(MathIdentifier portEntity)
 {
     return(Scanner.ExistsPort(this, delegate(Port p) { return p.Entity.EntityId.Equals(portEntity); }, true));
 }
Exemplo n.º 9
0
 /// <summary>Checks whether a property is set.</summary>
 public bool HasProperty(MathIdentifier propertyId)
 {
     return(Properties.ContainsProperty(propertyId));
 }