/// <summary>
 /// Initializes a new instance of the <see cref="ReqIFBuilder"/> class
 /// </summary>
 /// <param name="lang">The language setting for the reqif file. Default is "en"</param>
 public ReqIFBuilder(string lang = "en")
 {
     this.language = lang;
     this.cdp4ModelValidationFailureHandler = new Cdp4ModelValidationFailureHandler();
     this.mapper                       = new ThingToReqIfMapper(this.cdp4ModelValidationFailureHandler);
     this.specType                     = new Dictionary <Thing, SpecType>();
     this.requirementMap               = new Dictionary <Requirement, SpecObject>();
     this.requirementsGroupMap         = new Dictionary <RequirementsGroup, SpecObject>();
     this.requirementSpecificationsMap = new Dictionary <RequirementsSpecification, Specification>();
     this.specRelationMap              = new Dictionary <BinaryRelationship, SpecRelation>();
     this.parameterTypeMap             = new Dictionary <ParameterType, DatatypeDefinition>();
     this.specTypeMap                  = new Dictionary <SpecType, IReadOnlyCollection <Rule> >();
     this.relationGroupMap             = new Dictionary <BinaryRelationship, RelationGroup>();
 }
Exemple #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="ThingToReqIfMapper"/> classs
 /// </summary>
 public ThingToReqIfMapper(Cdp4ModelValidationFailureHandler cdp4ModelValidationFailureHandler)
 {
     this.cdp4ModelValidationFailureHandler = cdp4ModelValidationFailureHandler;
 }