-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup of unused and naming improvements of existing paramters #180
Changes from 8 commits
5a268c4
f2e2d67
a7575ae
8f0b3e0
1b95f4b
e0e3492
af04633
4aae9d6
096dce7
9271893
9f22788
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,6 @@ PhilMFischer <[email protected]> Philipp M. Fischer <philipp.fischer@dlr. | |
TjorveKujathDLR <[email protected]> Tjorve Kujath <[email protected]> | ||
|
||
dellerDLR <[email protected]> Eller, Dennis <[email protected]> | ||
dellerDLR <[email protected]> elle_de <[email protected]> | ||
|
||
pchrszon-dlr <[email protected]> Chrszon, Philipp <[email protected]> |
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,46 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2008-2019 German Aerospace Center (DLR), Simulation and Software Technology, Germany. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
package de.dlr.sc.virsat.model.extension.cefx.migrator; | ||
|
||
// ***************************************************************** | ||
// * Import Statements | ||
// ***************************************************************** | ||
|
||
|
||
import de.dlr.sc.virsat.model.dvlm.DVLMFactory; | ||
import de.dlr.sc.virsat.model.dvlm.Repository; | ||
|
||
// ***************************************************************** | ||
// * Class Declaration | ||
// ***************************************************************** | ||
|
||
import org.junit.Test; | ||
|
||
/** | ||
* Auto Generated Class inheriting from Generator Gap Class | ||
* | ||
* This class is generated once, do your changes here | ||
* | ||
* VirSat DLR CEF Concept for extended Product Structures | ||
* | ||
*/ | ||
public class Migrator1v1Test extends AMigrator1v1Test { | ||
|
||
@Test | ||
public void testMigrator1v1() { | ||
Migrator1v1 testMigrator1v1 = new Migrator1v1(); | ||
|
||
Repository repository = DVLMFactory.eINSTANCE.createRepository(); | ||
repository.getActiveConcepts().add(conceptMigrateFromRepository); | ||
|
||
testMigrator1v1.migrate(conceptMigrateFrom, conceptMigrateFromRepository, conceptMigrateTo); | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -9,7 +9,7 @@ | |||||||
*******************************************************************************/ | ||||||||
Concept de.dlr.sc.virsat.model.extension.cefx | ||||||||
displayname "CEF-Extended" | ||||||||
version 1.0 | ||||||||
version 1.1 | ||||||||
description "VirSat DLR CEF Concept for extended Product Structures" | ||||||||
beta { | ||||||||
|
||||||||
|
@@ -123,32 +123,32 @@ Concept de.dlr.sc.virsat.model.extension.cefx | |||||||
Applicable For [de.dlr.sc.virsat.model.extension.ps.ElementDefinition, de.dlr.sc.virsat.model.extension.ps.ElementConfiguration, de.dlr.sc.virsat.model.extension.ps.ElementOccurence, de.dlr.sc.virsat.model.extension.ps.ElementRealization]; | ||||||||
Cardinality 1; | ||||||||
|
||||||||
Type massPerUnit of Category Parameter quantityKind "Mass" unit "Kilogram"; | ||||||||
Type massTotal of Category Parameter quantityKind "Mass" unit "Kilogram"; | ||||||||
Type mass of Category Parameter quantityKind "Mass" unit "Kilogram" description "Mass of the unit."; | ||||||||
Type massTotal of Category Parameter quantityKind "Mass" unit "Kilogram" description "Mass of the unit including the mass of the child elements."; | ||||||||
Type massTotalWithMargin of Category Parameter quantityKind "Mass" unit "Kilogram"; | ||||||||
|
||||||||
Ref: massTotal = massPerUnit + summary{massTotal, 1}; | ||||||||
Ref: massTotalWithMargin = massPerUnit + (massPerUnit * EquipmentParameters.marginMaturity) + summary{massTotalWithMargin, 1}; | ||||||||
Ref: massTotal = mass + summary{massTotal, 1}; | ||||||||
Ref: massTotalWithMargin = mass + (mass * EquipmentParameters.marginMaturity) + summary{massTotalWithMargin, 1}; | ||||||||
} | ||||||||
|
||||||||
Category EquipmentPowerParameters { | ||||||||
Applicable For [de.dlr.sc.virsat.model.extension.ps.ElementDefinition, de.dlr.sc.virsat.model.extension.ps.ElementConfiguration, de.dlr.sc.virsat.model.extension.ps.ElementOccurence, de.dlr.sc.virsat.model.extension.ps.ElementRealization]; | ||||||||
Cardinality 1; | ||||||||
|
||||||||
Type powerUnitActive of Category Parameter quantityKind "Dimensionless" unit "No Unit" description "Should be 1 if the equipment is active in the given mode, 0 in case it is totally off."; | ||||||||
Type powerUnitIsInactive of Category Parameter quantityKind "Dimensionless" unit "No Unit" description "Should be 1 if the equipment is active in the given mode, 0 in case it is totally off."; | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't see that, I like your version more :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the description still correct? I think it should say the opposite if the parameter is negated, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, the description has to be updated |
||||||||
|
||||||||
Type powerDutyCycle of Category Parameter quantityKind "Dimensionless" unit "Percent"; | ||||||||
Type PowerPerUnitOn of Category Parameter quantityKind "Power" unit "Watt"; | ||||||||
Type PowerPerUnitStby of Category Parameter quantityKind "Power" unit "Watt"; | ||||||||
Type PowerPerUnitOnWithMargin of Category Parameter quantityKind "Power" unit "Watt"; | ||||||||
Type PowerPerUnitStbyWithMargin of Category Parameter quantityKind "Power" unit "Watt"; | ||||||||
Type PowerPerUnitAvgWithMargin 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: PowerPerUnitOnWithMargin = PowerPerUnitOn + (PowerPerUnitOn * EquipmentParameters.marginMaturity); | ||||||||
Ref: PowerPerUnitStbyWithMargin = PowerPerUnitStby + (PowerPerUnitStby * EquipmentParameters.marginMaturity); | ||||||||
Ref: PowerPerUnitAvgWithMargin = PowerPerUnitOnWithMargin * powerDutyCycle + PowerPerUnitStbyWithMargin * (1 - powerDutyCycle); | ||||||||
Ref: PowerAvgWithMargin = (PowerPerUnitAvgWithMargin + summary{PowerAvgWithMargin, 1}) * powerUnitActive; | ||||||||
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 { | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is still "Active" ^^ Pls update: I will add a suggestion that you can directly apply