public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIRequirementArtifactUnion"); oprot.WriteStructBegin(struc); TField field = new TField(); if (RequirementPackage != null && __isset.RequirementPackage) { field.Name = "RequirementPackage"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); RequirementPackage.Write(oprot); oprot.WriteFieldEnd(); } if (RequirementSource != null && __isset.RequirementSource) { field.Name = "RequirementSource"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); RequirementSource.Write(oprot); oprot.WriteFieldEnd(); } if (DependabilityRequirement != null && __isset.DependabilityRequirement) { field.Name = "DependabilityRequirement"; field.Type = TType.Struct; field.ID = 3; oprot.WriteFieldBegin(field); DependabilityRequirement.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public override string ToString() { StringBuilder __sb = new StringBuilder("TDDIRequirementArtifactUnion("); bool __first = true; if (RequirementPackage != null && __isset.RequirementPackage) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("RequirementPackage: "); __sb.Append(RequirementPackage == null ? "<null>" : RequirementPackage.ToString()); } if (RequirementSource != null && __isset.RequirementSource) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("RequirementSource: "); __sb.Append(RequirementSource == null ? "<null>" : RequirementSource.ToString()); } if (DependabilityRequirement != null && __isset.DependabilityRequirement) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DependabilityRequirement: "); __sb.Append(DependabilityRequirement == null ? "<null>" : DependabilityRequirement.ToString()); } __sb.Append(")"); return(__sb.ToString()); }
public override string ToString() { StringBuilder __sb = new StringBuilder("TDDISecurityRequirement("); bool __first = true; if (__isset.Id) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Id: "); __sb.Append(Id); } if (Name != null && __isset.Name) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Name: "); __sb.Append(Name); } if (Description != null && __isset.Description) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Description: "); __sb.Append(Description); } if (KeyValueMaps != null && __isset.KeyValueMaps) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("KeyValueMaps: "); __sb.Append(KeyValueMaps); } if (DecompositionArgument != null && __isset.DecompositionArgument) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DecompositionArgument: "); __sb.Append(DecompositionArgument); } if (RefinedRequirements != null && __isset.RefinedRequirements) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("RefinedRequirements: "); __sb.Append(RefinedRequirements); } if (RequirementSource != null && __isset.RequirementSource) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("RequirementSource: "); __sb.Append(RequirementSource == null ? "<null>" : RequirementSource.ToString()); } if (Measures != null && __isset.Measures) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Measures: "); __sb.Append(Measures); } if (Failures != null && __isset.Failures) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Failures: "); __sb.Append(Failures); } if (AssuranceLevel != null && __isset.AssuranceLevel) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("AssuranceLevel: "); __sb.Append(AssuranceLevel == null ? "<null>" : AssuranceLevel.ToString()); } if (MaintenanceProcedures != null && __isset.MaintenanceProcedures) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("MaintenanceProcedures: "); __sb.Append(MaintenanceProcedures); } if (SecurityCapabilities != null && __isset.SecurityCapabilities) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("SecurityCapabilities: "); __sb.Append(SecurityCapabilities); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDISecurityRequirement"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 4; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMap _iter698 in KeyValueMaps) { _iter698.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (DecompositionArgument != null && __isset.DecompositionArgument) { field.Name = "DecompositionArgument"; field.Type = TType.String; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteString(DecompositionArgument); oprot.WriteFieldEnd(); } if (RefinedRequirements != null && __isset.RefinedRequirements) { field.Name = "RefinedRequirements"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, RefinedRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter699 in RefinedRequirements) { _iter699.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (RequirementSource != null && __isset.RequirementSource) { field.Name = "RequirementSource"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); RequirementSource.Write(oprot); oprot.WriteFieldEnd(); } if (Measures != null && __isset.Measures) { field.Name = "Measures"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Measures.Count)); foreach (TDDIAbstractMeasureRef _iter700 in Measures) { _iter700.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Failures != null && __isset.Failures) { field.Name = "Failures"; field.Type = TType.List; field.ID = 9; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Failures.Count)); foreach (TDDIAbstractFailureRef _iter701 in Failures) { _iter701.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (MaintenanceProcedures != null && __isset.MaintenanceProcedures) { field.Name = "MaintenanceProcedures"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, MaintenanceProcedures.Count)); foreach (TDDIMaintenanceProcedureRef _iter702 in MaintenanceProcedures) { _iter702.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (SecurityCapabilities != null && __isset.SecurityCapabilities) { field.Name = "SecurityCapabilities"; field.Type = TType.List; field.ID = 12; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SecurityCapabilities.Count)); foreach (TDDISecurityCapabilityRef _iter703 in SecurityCapabilities) { _iter703.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public override string ToString() { StringBuilder __sb = new StringBuilder("TDDISafetyRequirement("); bool __first = true; if (__isset.Id) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Id: "); __sb.Append(Id); } if (Name != null && __isset.Name) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Name: "); __sb.Append(Name); } if (Description != null && __isset.Description) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Description: "); __sb.Append(Description); } if (__isset.IsCitation) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("IsCitation: "); __sb.Append(IsCitation); } if (__isset.IsAbstract) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("IsAbstract: "); __sb.Append(IsAbstract); } if (KeyValueMaps != null && __isset.KeyValueMaps) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("KeyValueMaps: "); __sb.Append(KeyValueMaps); } if (CitedElement != null && __isset.CitedElement) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("CitedElement: "); __sb.Append(CitedElement == null ? "<null>" : CitedElement.ToString()); } if (DecompositionArgument != null && __isset.DecompositionArgument) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DecompositionArgument: "); __sb.Append(DecompositionArgument); } if (RefinedRequirements != null && __isset.RefinedRequirements) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("RefinedRequirements: "); __sb.Append(RefinedRequirements); } if (RequirementSource != null && __isset.RequirementSource) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("RequirementSource: "); __sb.Append(RequirementSource == null ? "<null>" : RequirementSource.ToString()); } if (Measures != null && __isset.Measures) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Measures: "); __sb.Append(Measures); } if (FailureModes != null && __isset.FailureModes) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("FailureModes: "); __sb.Append(FailureModes); } if (AssuranceLevel != null && __isset.AssuranceLevel) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("AssuranceLevel: "); __sb.Append(AssuranceLevel == null ? "<null>" : AssuranceLevel.ToString()); } if (MaintenanceProcedures != null && __isset.MaintenanceProcedures) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("MaintenanceProcedures: "); __sb.Append(MaintenanceProcedures); } if (Hazards != null && __isset.Hazards) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Hazards: "); __sb.Append(Hazards); } if (__isset.FailureReactionTime) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("FailureReactionTime: "); __sb.Append(FailureReactionTime); } if (__isset.FailureDetectionTime) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("FailureDetectionTime: "); __sb.Append(FailureDetectionTime); } if (__isset.FailureLatencyTime) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("FailureLatencyTime: "); __sb.Append(FailureLatencyTime); } if (__isset.IsSafetyGoal) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("IsSafetyGoal: "); __sb.Append(IsSafetyGoal); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDISafetyRequirement"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter930 in KeyValueMaps) { _iter930.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (DecompositionArgument != null && __isset.DecompositionArgument) { field.Name = "DecompositionArgument"; field.Type = TType.String; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteString(DecompositionArgument); oprot.WriteFieldEnd(); } if (RefinedRequirements != null && __isset.RefinedRequirements) { field.Name = "RefinedRequirements"; field.Type = TType.List; field.ID = 9; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, RefinedRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter931 in RefinedRequirements) { _iter931.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (RequirementSource != null && __isset.RequirementSource) { field.Name = "RequirementSource"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); RequirementSource.Write(oprot); oprot.WriteFieldEnd(); } if (Measures != null && __isset.Measures) { field.Name = "Measures"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Measures.Count)); foreach (TDDIAbstractMeasureRef _iter932 in Measures) { _iter932.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (FailureModes != null && __isset.FailureModes) { field.Name = "FailureModes"; field.Type = TType.List; field.ID = 12; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, FailureModes.Count)); foreach (TDDIAbstractFailureRef _iter933 in FailureModes) { _iter933.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 13; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (MaintenanceProcedures != null && __isset.MaintenanceProcedures) { field.Name = "MaintenanceProcedures"; field.Type = TType.List; field.ID = 14; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, MaintenanceProcedures.Count)); foreach (TDDIMaintenanceProcedureRef _iter934 in MaintenanceProcedures) { _iter934.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Hazards != null && __isset.Hazards) { field.Name = "Hazards"; field.Type = TType.List; field.ID = 15; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Hazards.Count)); foreach (TDDIHazardRef _iter935 in Hazards) { _iter935.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (__isset.FailureReactionTime) { field.Name = "FailureReactionTime"; field.Type = TType.Double; field.ID = 16; oprot.WriteFieldBegin(field); oprot.WriteDouble(FailureReactionTime); oprot.WriteFieldEnd(); } if (__isset.FailureDetectionTime) { field.Name = "FailureDetectionTime"; field.Type = TType.Double; field.ID = 17; oprot.WriteFieldBegin(field); oprot.WriteDouble(FailureDetectionTime); oprot.WriteFieldEnd(); } if (__isset.FailureLatencyTime) { field.Name = "FailureLatencyTime"; field.Type = TType.Double; field.ID = 18; oprot.WriteFieldBegin(field); oprot.WriteDouble(FailureLatencyTime); oprot.WriteFieldEnd(); } if (__isset.IsSafetyGoal) { field.Name = "IsSafetyGoal"; field.Type = TType.Bool; field.ID = 19; oprot.WriteFieldBegin(field); oprot.WriteBool(IsSafetyGoal); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public Requirement(RequirementSource source) { RequirementSource = source; }