Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MiniZincArrayType"/> class with
 /// a given type instance for the index and the elements.
 /// </summary>
 /// <param name="indexType">The type of the index of the array.</param>
 /// <param name="elementType">The type of the elements in the array.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="indexType"/> or
 /// <paramref name="elementType"/> is not effective.</exception>
 /// <exception cref="ArgumentException">If the <paramref name="indexType"/> is varified.</exception>
 public MiniZincArrayType(IMiniZincTypeInst indexType, IMiniZincTypeInst elementType)
 {
     this.IndexType   = indexType;
     this.ElementType = elementType;
 }
Ejemplo n.º 2
0
 public bool CanVarify(IMiniZincTypeInst other)
 {
     throw new NotImplementedException ();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MiniZincSetType"/> class with
 /// a given element's type.
 /// </summary>
 /// <param name="elementType">The element's type of the set.</param>
 /// <exception cref="ArgumentNullException">If the given <paramref name="elementType"/> is <see langword="null"/>.</exception>
 public MiniZincSetType(IMiniZincTypeInst elementType)
 {
     Contract.Ensures(this.elementType != null);
     this.ElementType = elementType;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MiniZincArrayType"/> class with
 /// a given type instance for the index and the elements.
 /// </summary>
 /// <param name="indexType">The type of the index of the array.</param>
 /// <param name="elementType">The type of the elements in the array.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="indexType"/> or
 /// <paramref name="elementType"/> is not effective.</exception>
 /// <exception cref="ArgumentException">If the <paramref name="indexType"/> is varified.</exception>
 public MiniZincArrayType(IMiniZincTypeInst indexType, IMiniZincTypeInst elementType)
 {
     this.IndexType = indexType;
     this.ElementType = elementType;
 }
Ejemplo n.º 5
0
 public bool CanCoerce(IMiniZincTypeInst other)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MiniZincSetType"/> class with
 /// a given element's type.
 /// </summary>
 /// <param name="elementType">The element's type of the set.</param>
 /// <exception cref="ArgumentNullException">If the given <paramref name="elementType"/> is <see langword="null"/>.</exception>
 public MiniZincSetType(IMiniZincTypeInst elementType)
 {
     Contract.Ensures (this.elementType != null);
     this.ElementType = elementType;
 }