use of com.opensimulationplatform.core.owlconfig.OWLConfig in project osp-validator by open-simulation-platform.
the class VE_VolumeFlowRate_2_Test method setUp.
@Before
public void setUp() {
builder.setContext(builderContext);
builderContext.owl = new OWLConfig();
validationErrorContext.owl = builderContext.owl;
validationErrorContext.variableGroups = builderContext.variableGroups;
validationErrorContext.invalidIndividuals = builderContext.invalidIndividuals;
validationError.setContext(validationErrorContext);
}
use of com.opensimulationplatform.core.owlconfig.OWLConfig in project osp-validator by open-simulation-platform.
the class ValidatorContextFactory method create.
public ValidatorContext create(SystemStructure systemStructure) {
OwlBuilderContext builderContext = new OwlBuilderContext();
builderContext.owl = new OWLConfig();
builderContext.owl.removeNakedVariables = true;
SystemStructureOwlBuilder builder = new SystemStructureOwlBuilder();
builder.setContext(builderContext);
builder.build(systemStructure);
builder.complete();
ValidatorContext validatorContext = new ValidatorContext();
validatorContext.owl = builderContext.owl;
validatorContext.invalidIndividuals = builderContext.invalidIndividuals;
validatorContext.names = builderContext.names;
validatorContext.units = builderContext.units;
validatorContext.variables = builderContext.variables;
validatorContext.variableGroups = builderContext.variableGroups;
validatorContext.simulators = builderContext.simulators;
validatorContext.variableConnections = builderContext.variableConnections;
validatorContext.variableGroupConnections = builderContext.variableGroupConnections;
validatorContext.systemStructures = builderContext.systemStructures;
return validatorContext;
}
use of com.opensimulationplatform.core.owlconfig.OWLConfig in project osp-validator by open-simulation-platform.
the class VE_VariableGroupConnection_1_Test method setUp.
@Before
public void setUp() {
builder.setContext(builderContext);
builderContext.owl = new OWLConfig();
validationErrorContext.owl = builderContext.owl;
validationErrorContext.variableGroupConnections = builderContext.variableGroupConnections;
validationErrorContext.invalidIndividuals = builderContext.invalidIndividuals;
validationError.setContext(validationErrorContext);
}
Aggregations