Skip to content

Commit

Permalink
Task #193 Code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngat_di authored and ngat_di committed Mar 6, 2024
1 parent 5d4cc03 commit 8ef23fc
Show file tree
Hide file tree
Showing 12 changed files with 498 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
*/
public class DLRCEFStudyCommandHelper {

public static final String POWER_PARAMETERS = "powerParameters";
public static final String MASS_PARAMETERS = "massParameters";
public static final String SYSTEM_PARAMETERS = "systemParameters";
public static final String POWER_PARAMETERS = "PowerParameters";
public static final String MASS_PARAMETERS = "MassParameters";
public static final String SYSTEM_PARAMETERS = "SystemParameters";
public static final String EQUIPMENT_MASS_PARAMETERS = "EquipmentMassParameters";
public static final String TEMPERATURE_PARAMETERS = "temperatureParameters";
public static final String SYSTEM = "System";
public static final String SUB_SYSTEM = "subSystem";
public static final String EQUIPMENT = "equipment";
public static final String TEMPERATURE_PARAMETERS = "TemperatureParameters";
public static final String SYSTEM_NAME = "System";
public static final String SUB_SYSTEM_NAME = "SubSystem";
public static final String EQUIPMENT_NAME = "Equipment";

/**
* private Constructor
Expand All @@ -74,7 +74,7 @@ public static Concept getCefConcept(VirSatTransactionalEditingDomain domain) {
*/
public static System createSystemBean(Concept concept) {
System system = new System(concept);
system.setName(SYSTEM);
system.setName(SYSTEM_NAME);
return system;
}

Expand All @@ -84,7 +84,7 @@ public static System createSystemBean(Concept concept) {
*/
public static SubSystem createSubSystemBean(Concept concept) {
SubSystem subSystem = new SubSystem(concept);
subSystem.setName(SUB_SYSTEM);
subSystem.setName(SUB_SYSTEM_NAME);
return subSystem;
}

Expand All @@ -94,7 +94,7 @@ public static SubSystem createSubSystemBean(Concept concept) {
*/
public static Equipment createEquipmentBean(Concept concept) {
Equipment equipment = new Equipment(concept);
equipment.setName(EQUIPMENT);
equipment.setName(EQUIPMENT_NAME);
return equipment;
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

26 changes: 13 additions & 13 deletions de.dlr.sc.virsat.model.extension.cefx/concept/concept.concept
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
*******************************************************************************/
Concept de.dlr.sc.virsat.model.extension.cefx
displayname "CEF-Extended"
version 1.1
version 1.2
description "VirSat DLR CEF Concept for extended Product Structures"
beta {
{

Import de.dlr.sc.virsat.model.extension.ps.*;

Expand Down Expand Up @@ -107,7 +107,7 @@ Concept de.dlr.sc.virsat.model.extension.cefx
Type powerAvgWithMargin of Category Parameter quantityKind "Power" unit "Watt";
Type powerEnergyWithMargin of Category Parameter quantityKind "Energy and Work" unit "Joule";

Ref: powerAvgWithMargin = summary{EquipmentPowerParameters.PowerAvgWithMargin, 1};
Ref: powerAvgWithMargin = summary{EquipmentPowerParameters.powerAvgWithMargin, 1};
Ref: powerEnergyWithMargin = powerAvgWithMargin * SystemParameters.modeDuration;
}

Expand Down Expand Up @@ -138,17 +138,17 @@ Concept de.dlr.sc.virsat.model.extension.cefx
Type powerUnitIsInactive of Category Parameter quantityKind "Dimensionless" unit "No Unit" description "Should be 1 if the equipment is inactive in the given mode, meaning it is totally off.";

Type powerDutyCycle of Category Parameter quantityKind "Dimensionless" unit "Percent";
Type PowerUnitOn of Category Parameter quantityKind "Power" unit "Watt";
Type PowerUnitStby of Category Parameter quantityKind "Power" unit "Watt";
Type PowerUnitOnWithMargin of Category Parameter quantityKind "Power" unit "Watt";
Type PowerUnitStbyWithMargin of Category Parameter quantityKind "Power" unit "Watt";
Type PowerUnitAvgWithMargin of Category Parameter quantityKind "Power" unit "Watt";
Type PowerAvgWithMargin of Category Parameter quantityKind "Power" unit "Watt";
Type powerUnitOn of Category Parameter quantityKind "Power" unit "Watt";
Type powerUnitStby of Category Parameter quantityKind "Power" unit "Watt";
Type powerUnitOnWithMargin of Category Parameter quantityKind "Power" unit "Watt";
Type powerUnitStbyWithMargin of Category Parameter quantityKind "Power" unit "Watt";
Type powerUnitAvgWithMargin of Category Parameter quantityKind "Power" unit "Watt";
Type powerAvgWithMargin of Category Parameter quantityKind "Power" unit "Watt";

Ref: PowerUnitOnWithMargin = PowerUnitOn + (PowerUnitOn * EquipmentParameters.marginMaturity);
Ref: PowerUnitStbyWithMargin = PowerUnitStby + (PowerUnitStby * EquipmentParameters.marginMaturity);
Ref: PowerUnitAvgWithMargin = PowerUnitOnWithMargin * powerDutyCycle + PowerUnitStbyWithMargin * (1 - powerDutyCycle);
Ref: PowerAvgWithMargin = (PowerUnitAvgWithMargin + summary{PowerAvgWithMargin, 1}) * ( 1 - powerUnitIsInactive);
Ref: powerUnitOnWithMargin = powerUnitOn + (powerUnitOn * EquipmentParameters.marginMaturity);
Ref: powerUnitStbyWithMargin = powerUnitStby + (powerUnitStby * EquipmentParameters.marginMaturity);
Ref: powerUnitAvgWithMargin = powerUnitOnWithMargin * powerDutyCycle + powerUnitStbyWithMargin * (1 - powerDutyCycle);
Ref: powerAvgWithMargin = (powerUnitAvgWithMargin + summary{powerAvgWithMargin, 1}) * ( 1 - powerUnitIsInactive);
}

Category EquipmentTemperatureParameters {
Expand Down
Loading

0 comments on commit 8ef23fc

Please sign in to comment.