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());
}
}
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());
}
}
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());
}
}
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());
}
}
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());
}
}
Aggregations