Exemple #1
0
 /// <summary>
 /// Initialize a model with a name.
 /// </summary>
 /// <param name="theName">Model name.</param>
 public ModelModel(ModelName theName)
     : this()
 {
     Name = theName;
 }
Exemple #2
0
 /// <summary>
 /// Initialize a model with a name.
 /// </summary>
 /// <param name="theName">Model name.</param>
 /// <param name="workspace">Workspace the model is a part.</param>
 public ModelModel(ModelName theName, WorkspaceModel workspace)
     : base(theName)
 {
     Workspace = workspace;
 }
Exemple #3
0
 public ExpressionConstraintModel(ModelModel theModel, ModelName theName)
     : base(theName)
 {
     Parent          = theModel;
     this.expression = new ConstraintExpressionModel();
 }
 /// <summary>
 /// Initialize a constraint with a name.
 /// </summary>
 /// <param name="theName">Text.</param>
 protected ConstraintModel(ModelName theName)
     : base(theName)
 {
 }
 /// <summary>
 /// Initialize a bucket with a name.
 /// </summary>
 /// <param name="workspace">Workspace the variable resides.</param>
 /// <param name="name">Bucket name.</param>
 public BucketVariableModel(WorkspaceModel workspace, ModelName name)
     : base(name)
 {
 }
 /// <summary>
 /// Initialize a chessboard with a name.
 /// </summary>
 /// <param name="modelName"></param>
 public ChessboardModel(ModelName modelName)
     : base(modelName)
 {
     Squares = new ObservableCollection <ChessboardSquareModel>();
     InitializeBoard();
 }
 /// <summary>
 /// Initialize a shared domain with a name and domain expression.
 /// </summary>
 public SharedDomainModel(ModelModel theModel, ModelName theName, SharedDomainExpressionModel theExpression)
     : base(theName)
 {
     Parent      = theModel;
     _expression = theExpression;
 }
Exemple #8
0
 /// <summary>
 /// Initialize a model entity with default values.
 /// </summary>
 protected Model()
 {
     _name = new ModelName();
 }
Exemple #9
0
 /// <summary>
 /// Initialize a model entity with a name.
 /// </summary>
 /// <param name="theName">Model entity name.</param>
 protected Model(ModelName theName)
 {
     _name = theName;
 }