public SystemBoundary AddSystemBoundary() { var systemBoundary = new SystemBoundary(); AddEntity(systemBoundary); return(systemBoundary); }
public bool InsertSystemBoundary(SystemBoundary systemBoundary) { if (systemBoundary == null || Entities.Contains(systemBoundary)) { return(false); } AddEntity(systemBoundary); return(true); }
public bool InsertSystemBoundary(SystemBoundary systemBoundary) { return(model.InsertSystemBoundary(systemBoundary)); }
private void AddSystemBoundary(SystemBoundary systemBoundary) { AddShape(new SystemBoundaryShape(systemBoundary)); }
public override string ToString() { StringBuilder __sb = new StringBuilder("TDDIDesignArtifactUnion("); bool __first = true; if (System != null && __isset.System) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("System: "); __sb.Append(System == null ? "<null>" : System.ToString()); } if (Function != null && __isset.Function) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Function: "); __sb.Append(Function == null ? "<null>" : Function.ToString()); } if (Configuration != null && __isset.Configuration) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Configuration: "); __sb.Append(Configuration == null ? "<null>" : Configuration.ToString()); } if (Signal != null && __isset.Signal) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Signal: "); __sb.Append(Signal == null ? "<null>" : Signal.ToString()); } if (SystemBoundary != null && __isset.SystemBoundary) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("SystemBoundary: "); __sb.Append(SystemBoundary == null ? "<null>" : SystemBoundary.ToString()); } if (Context != null && __isset.Context) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Context: "); __sb.Append(Context == null ? "<null>" : Context.ToString()); } if (LifecycleCondition != null && __isset.LifecycleCondition) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("LifecycleCondition: "); __sb.Append(LifecycleCondition == null ? "<null>" : LifecycleCondition.ToString()); } if (Port != null && __isset.Port) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Port: "); __sb.Append(Port == null ? "<null>" : Port.ToString()); } if (PerfChars != null && __isset.PerfChars) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("PerfChars: "); __sb.Append(PerfChars == null ? "<null>" : PerfChars.ToString()); } if (ArchitecturePackage != null && __isset.ArchitecturePackage) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("ArchitecturePackage: "); __sb.Append(ArchitecturePackage == null ? "<null>" : ArchitecturePackage.ToString()); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIDesignArtifactUnion"); oprot.WriteStructBegin(struc); TField field = new TField(); if (System != null && __isset.System) { field.Name = "System"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); System.Write(oprot); oprot.WriteFieldEnd(); } if (Function != null && __isset.Function) { field.Name = "Function"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); Function.Write(oprot); oprot.WriteFieldEnd(); } if (Configuration != null && __isset.Configuration) { field.Name = "Configuration"; field.Type = TType.Struct; field.ID = 3; oprot.WriteFieldBegin(field); Configuration.Write(oprot); oprot.WriteFieldEnd(); } if (Signal != null && __isset.Signal) { field.Name = "Signal"; field.Type = TType.Struct; field.ID = 4; oprot.WriteFieldBegin(field); Signal.Write(oprot); oprot.WriteFieldEnd(); } if (SystemBoundary != null && __isset.SystemBoundary) { field.Name = "SystemBoundary"; field.Type = TType.Struct; field.ID = 5; oprot.WriteFieldBegin(field); SystemBoundary.Write(oprot); oprot.WriteFieldEnd(); } if (Context != null && __isset.Context) { field.Name = "Context"; field.Type = TType.Struct; field.ID = 6; oprot.WriteFieldBegin(field); Context.Write(oprot); oprot.WriteFieldEnd(); } if (LifecycleCondition != null && __isset.LifecycleCondition) { field.Name = "LifecycleCondition"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); LifecycleCondition.Write(oprot); oprot.WriteFieldEnd(); } if (Port != null && __isset.Port) { field.Name = "Port"; field.Type = TType.Struct; field.ID = 8; oprot.WriteFieldBegin(field); Port.Write(oprot); oprot.WriteFieldEnd(); } if (PerfChars != null && __isset.PerfChars) { field.Name = "PerfChars"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); PerfChars.Write(oprot); oprot.WriteFieldEnd(); } if (ArchitecturePackage != null && __isset.ArchitecturePackage) { field.Name = "ArchitecturePackage"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); ArchitecturePackage.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public SystemBoundaryShape(SystemBoundary entity) : base(entity) { this.systemBoundary = entity; this.systemBoundary.Modified += delegate { UpdateMinSize(); }; this.editor = new ShapeNameEditor(); }