Beispiel #1
0
        public MDGTechnology(String id, String name, String version, int modelVersion, String description = "",
                             IEnumerable <Diagram> diagrams = null, IEnumerable <ModelTemplate> modelTemplates = null)
        {
            ID             = id;
            Name           = name;
            Version        = version;
            ModelVersion   = modelVersion;
            Description    = description;
            Diagrams       = diagrams ?? new Diagram[] { };
            ModelTemplates = modelTemplates ?? new ModelTemplate[] { };

            ModelId    = new ModelId(ID, ModelVersion);
            ModelIdTag = new TaggedValueDefinition("XModelId", TaggedValueTypes.Const(ModelId.ToString()));
        }
Beispiel #2
0
 public bool IsPredecessorOf(ModelId other)
 {
     return(Technology == other.Technology && Version < other.Version);
 }