Exemple #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])
 {
 }
 public bool EqualsById(MathIdentifier otherStructureId)
 {
     return(TypeId.Equals(otherStructureId));
 }
Exemple #3
0
 public bool EqualsById(MathIdentifier otherEntityId)
 {
     return(EntityId.Equals(otherEntityId));
 }
Exemple #4
0
 public Entity(string symbol, MathIdentifier id, InfixNotation notation, int precedence, bool isGeneric)
     : this(symbol, id, notation, precedence, isGeneric, new string[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));
 }
 /// <summary>Checks whether a property is set.</summary>
 public override bool HasProperty(MathIdentifier propertyId)
 {
     return(_constraints.ContainsProperty(propertyId) || _properties.ContainsProperty(propertyId));
 }
        private MathNet.Symbolics.Port _port; // = null;

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