Search in sources :

Example 6 with VariableGroup

use of com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup in project osp-validator by open-simulation-platform.

the class Validator method addVoltage.

private void addVoltage(ModelDescription modelDescription, Map<Object, Object> map, VoltageType element) {
    VariableGroup variableGroup = ModelDescriptionUtil.getVariableGroupByName(modelDescription, element.getName());
    if (variableGroup != null) {
        map.put(variableGroup, element);
        addVariables(modelDescription, map, element.getVariable());
    }
}
Also used : VariableGroup(com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup)

Example 7 with VariableGroup

use of com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup in project osp-validator by open-simulation-platform.

the class Validator method addElectromagneticQuasiPort.

private void addElectromagneticQuasiPort(ModelDescription modelDescription, Map<Object, Object> map, ElectromagneticQuasiPortType element) {
    VariableGroup variableGroup = ModelDescriptionUtil.getVariableGroupByName(modelDescription, element.getName());
    if (variableGroup != null) {
        map.put(variableGroup, element);
        addVoltage(modelDescription, map, element.getVoltage());
        addCharge(modelDescription, map, element.getCharge());
    }
}
Also used : VariableGroup(com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup)

Example 8 with VariableGroup

use of com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup in project osp-validator by open-simulation-platform.

the class Validator method addElectromagneticPort.

private void addElectromagneticPort(ModelDescription modelDescription, Map<Object, Object> map, ElectromagneticPortType element) {
    VariableGroup variableGroup = ModelDescriptionUtil.getVariableGroupByName(modelDescription, element.getName());
    if (variableGroup != null) {
        map.put(variableGroup, element);
        addVoltage(modelDescription, map, element.getVoltage());
        addCurrent(modelDescription, map, element.getCurrent());
    }
}
Also used : VariableGroup(com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup)

Example 9 with VariableGroup

use of com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup in project osp-validator by open-simulation-platform.

the class Validator method addAngularVelocity.

private void addAngularVelocity(ModelDescription modelDescription, Map<Object, Object> map, AngularVelocityType element) {
    VariableGroup variableGroup = ModelDescriptionUtil.getVariableGroupByName(modelDescription, element.getName());
    if (variableGroup != null) {
        map.put(variableGroup, element);
        addVariables(modelDescription, map, element.getVariable());
    }
}
Also used : VariableGroup(com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup)

Example 10 with VariableGroup

use of com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup in project osp-validator by open-simulation-platform.

the class Validator method addLinearDisplacement.

private void addLinearDisplacement(ModelDescription modelDescription, Map<Object, Object> map, LinearDisplacementType element) {
    VariableGroup variableGroup = ModelDescriptionUtil.getVariableGroupByName(modelDescription, element.getName());
    if (variableGroup != null) {
        map.put(variableGroup, element);
        addVariables(modelDescription, map, element.getVariable());
    }
}
Also used : VariableGroup(com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup)

Aggregations

VariableGroup (com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup)34 OWLNamedIndividual (org.semanticweb.owlapi.model.OWLNamedIndividual)6 VariableGroupConnection (com.opensimulationplatform.core.model.systemstructure.VariableGroupConnection)5 Test (org.junit.Test)5 Simulator (com.opensimulationplatform.core.model.systemstructure.Simulator)4 ValidationDiagnostic (com.opensimulationplatform.core.validation.ValidationDiagnostic)4 Variable (com.opensimulationplatform.core.model.modeldescription.Variable)3 Generic (com.opensimulationplatform.core.model.modeldescription.variablegroup.generic.Generic)3 ValidationError (com.opensimulationplatform.core.validation.ValidationError)3 List (java.util.List)3 Set (java.util.Set)3 Collectors (java.util.stream.Collectors)3 OWLAxiom (org.semanticweb.owlapi.model.OWLAxiom)3 OWLClass (org.semanticweb.owlapi.model.OWLClass)3 OWLObjectProperty (org.semanticweb.owlapi.model.OWLObjectProperty)3 Force (com.opensimulationplatform.core.model.modeldescription.variablegroup.force.Force)1 SystemStructure (com.opensimulationplatform.core.model.systemstructure.SystemStructure)1 VariableConnection (com.opensimulationplatform.core.model.systemstructure.VariableConnection)1 VE_VariableGroup_1 (com.opensimulationplatform.gen.owl.model.OntologyClasses.VE_VariableGroup_1)1 VE_VariableGroup_2 (com.opensimulationplatform.gen.owl.model.OntologyClasses.VE_VariableGroup_2)1