public override string ToString() { StringBuilder __sb = new StringBuilder("TDDIFunction("); 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 (DependabilityRequirements != null && __isset.DependabilityRequirements) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DependabilityRequirements: "); __sb.Append(DependabilityRequirements); } if (AssuranceLevel != null && __isset.AssuranceLevel) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("AssuranceLevel: "); __sb.Append(AssuranceLevel); } if (SubFunctions != null && __isset.SubFunctions) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("SubFunctions: "); __sb.Append(SubFunctions); } if (Ports != null && __isset.Ports) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Ports: "); __sb.Append(Ports); } if (Signals != null && __isset.Signals) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Signals: "); __sb.Append(Signals); } if (PerfChars != null && __isset.PerfChars) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("PerfChars: "); __sb.Append(PerfChars == null ? "<null>" : PerfChars.ToString()); } if (FailureModels != null && __isset.FailureModels) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("FailureModels: "); __sb.Append(FailureModels); } if (Malfunctions != null && __isset.Malfunctions) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Malfunctions: "); __sb.Append(Malfunctions); } if (AsAsset != null && __isset.AsAsset) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("AsAsset: "); __sb.Append(AsAsset); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIFunction"); 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 _iter105 in KeyValueMaps) { _iter105.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 5; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter106 in DependabilityRequirements) { _iter106.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 6; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (SubFunctions != null && __isset.SubFunctions) { field.Name = "SubFunctions"; field.Type = TType.List; field.ID = 7; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SubFunctions.Count)); foreach (TDDIAbstractFunctionRef _iter107 in SubFunctions) { _iter107.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Ports != null && __isset.Ports) { field.Name = "Ports"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Ports.Count)); foreach (TDDIPort _iter108 in Ports) { _iter108.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Signals != null && __isset.Signals) { field.Name = "Signals"; field.Type = TType.List; field.ID = 9; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Signals.Count)); foreach (TDDISignal _iter109 in Signals) { _iter109.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (PerfChars != null && __isset.PerfChars) { field.Name = "PerfChars"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); PerfChars.Write(oprot); oprot.WriteFieldEnd(); } if (FailureModels != null && __isset.FailureModels) { field.Name = "FailureModels"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, FailureModels.Count)); foreach (TDDIAbstractFailureModelRef _iter110 in FailureModels) { _iter110.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Malfunctions != null && __isset.Malfunctions) { field.Name = "Malfunctions"; field.Type = TType.List; field.ID = 12; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Malfunctions.Count)); foreach (TDDIMalfunctionRef _iter111 in Malfunctions) { _iter111.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AsAsset != null && __isset.AsAsset) { field.Name = "AsAsset"; field.Type = TType.Struct; field.ID = 13; oprot.WriteFieldBegin(field); AsAsset.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
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 override string ToString() { StringBuilder __sb = new StringBuilder("TDDISafetyFunction("); 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); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DependabilityRequirements: "); __sb.Append(DependabilityRequirements); } if (AssuranceLevel != null && __isset.AssuranceLevel) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("AssuranceLevel: "); __sb.Append(AssuranceLevel); } if (SubFunctions != null && __isset.SubFunctions) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("SubFunctions: "); __sb.Append(SubFunctions); } if (Ports != null && __isset.Ports) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Ports: "); __sb.Append(Ports); } if (PerfChars != null && __isset.PerfChars) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("PerfChars: "); __sb.Append(PerfChars == null ? "<null>" : PerfChars.ToString()); } if (FailureModels != null && __isset.FailureModels) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("FailureModels: "); __sb.Append(FailureModels); } if (Malfunctions != null && __isset.Malfunctions) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Malfunctions: "); __sb.Append(Malfunctions); } if (Object != null && __isset.@Object) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Object: "); __sb.Append(Object); } if (Behavior != null && __isset.Behavior) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Behavior: "); __sb.Append(Behavior); } if (SafeState != null && __isset.SafeState) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("SafeState: "); __sb.Append(SafeState); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDISafetyFunction"); 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 _iter326 in KeyValueMaps) { _iter326.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 (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter327 in DependabilityRequirements) { _iter327.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (SubFunctions != null && __isset.SubFunctions) { field.Name = "SubFunctions"; field.Type = TType.List; field.ID = 10; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SubFunctions.Count)); foreach (TDDIAbstractFunctionRef _iter328 in SubFunctions) { _iter328.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Ports != null && __isset.Ports) { field.Name = "Ports"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Ports.Count)); foreach (TDDIPortRef _iter329 in Ports) { _iter329.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (PerfChars != null && __isset.PerfChars) { field.Name = "PerfChars"; field.Type = TType.Struct; field.ID = 12; oprot.WriteFieldBegin(field); PerfChars.Write(oprot); oprot.WriteFieldEnd(); } if (FailureModels != null && __isset.FailureModels) { field.Name = "FailureModels"; field.Type = TType.List; field.ID = 13; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, FailureModels.Count)); foreach (TDDIAbstractFailureLogicPackageRef _iter330 in FailureModels) { _iter330.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Malfunctions != null && __isset.Malfunctions) { field.Name = "Malfunctions"; field.Type = TType.List; field.ID = 14; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Malfunctions.Count)); foreach (TDDIMalFunctionRef _iter331 in Malfunctions) { _iter331.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Object != null && __isset.@Object) { field.Name = "Object"; field.Type = TType.String; field.ID = 15; oprot.WriteFieldBegin(field); oprot.WriteString(Object); oprot.WriteFieldEnd(); } if (Behavior != null && __isset.Behavior) { field.Name = "Behavior"; field.Type = TType.String; field.ID = 16; oprot.WriteFieldBegin(field); oprot.WriteString(Behavior); oprot.WriteFieldEnd(); } if (SafeState != null && __isset.SafeState) { field.Name = "SafeState"; field.Type = TType.String; field.ID = 17; oprot.WriteFieldBegin(field); oprot.WriteString(SafeState); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }