Search in sources :

Example 1 with OWLConfig

use of com.opensimulationplatform.core.owlconfig.OWLConfig in project osp-validator by open-simulation-platform.

the class ValidatorContextFactory method create.

public ValidatorContext create(ModelDescription modelDescription) {
    Simulator simulator = new Simulator();
    simulator.setModelDescription(modelDescription);
    OwlBuilderContext builderContext = new OwlBuilderContext();
    builderContext.owl = new OWLConfig();
    builderContext.owl.removeNakedVariables = false;
    SimulatorOwlBuilder builder = new SimulatorOwlBuilder();
    builder.setContext(builderContext);
    builder.build(simulator);
    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;
    return validatorContext;
}
Also used : OwlBuilderContext(com.opensimulationplatform.core.owlbuilder.OwlBuilderContext) OWLConfig(com.opensimulationplatform.core.owlconfig.OWLConfig) SimulatorOwlBuilder(com.opensimulationplatform.core.owlbuilder.SimulatorOwlBuilder) Simulator(com.opensimulationplatform.core.model.systemstructure.Simulator)

Example 2 with OWLConfig

use of com.opensimulationplatform.core.owlconfig.OWLConfig in project osp-validator by open-simulation-platform.

the class VE_Name_1_Test method setUp.

@Before
public void setUp() {
    builder.setContext(builderContext);
    builderContext.owl = new OWLConfig();
    builderContext.owl.removeNakedVariables = false;
    validationErrorContext.owl = builderContext.owl;
    validationErrorContext.names = builderContext.names;
    validationErrorContext.invalidIndividuals = builderContext.invalidIndividuals;
    validationError.setContext(validationErrorContext);
}
Also used : OWLConfig(com.opensimulationplatform.core.owlconfig.OWLConfig) Before(org.junit.Before)

Example 3 with OWLConfig

use of com.opensimulationplatform.core.owlconfig.OWLConfig in project osp-validator by open-simulation-platform.

the class VE_Name_2_Test method setUp.

@Before
public void setUp() {
    builder.setContext(builderContext);
    builderContext.owl = new OWLConfig();
    validationErrorContext.owl = builderContext.owl;
    validationErrorContext.names = builderContext.names;
    validationErrorContext.invalidIndividuals = builderContext.invalidIndividuals;
    validationError.setContext(validationErrorContext);
}
Also used : OWLConfig(com.opensimulationplatform.core.owlconfig.OWLConfig) Before(org.junit.Before)

Example 4 with OWLConfig

use of com.opensimulationplatform.core.owlconfig.OWLConfig in project osp-validator by open-simulation-platform.

the class VE_Name_3_Test method setUp.

@Before
public void setUp() {
    builder.setContext(builderContext);
    builderContext.owl = new OWLConfig();
    validationErrorContext.owl = builderContext.owl;
    validationErrorContext.names = builderContext.names;
    validationErrorContext.invalidIndividuals = builderContext.invalidIndividuals;
    validationError.setContext(validationErrorContext);
}
Also used : OWLConfig(com.opensimulationplatform.core.owlconfig.OWLConfig) Before(org.junit.Before)

Example 5 with OWLConfig

use of com.opensimulationplatform.core.owlconfig.OWLConfig in project osp-validator by open-simulation-platform.

the class VE_Simulator_1_Test method setUp.

@Before
public void setUp() {
    builder.setContext(builderContext);
    builderContext.owl = new OWLConfig();
    validationErrorContext.owl = builderContext.owl;
    validationErrorContext.simulators = builderContext.simulators;
    validationErrorContext.invalidIndividuals = builderContext.invalidIndividuals;
    validationError.setContext(validationErrorContext);
}
Also used : OWLConfig(com.opensimulationplatform.core.owlconfig.OWLConfig) Before(org.junit.Before)

Aggregations

OWLConfig (com.opensimulationplatform.core.owlconfig.OWLConfig)68 Before (org.junit.Before)66 OwlBuilderContext (com.opensimulationplatform.core.owlbuilder.OwlBuilderContext)2 Simulator (com.opensimulationplatform.core.model.systemstructure.Simulator)1 SimulatorOwlBuilder (com.opensimulationplatform.core.owlbuilder.SimulatorOwlBuilder)1 SystemStructureOwlBuilder (com.opensimulationplatform.core.owlbuilder.SystemStructureOwlBuilder)1