-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from catenax-ng/support-pcf-part_3
[feat|sde-v2.2.0|major] support new pcf submodel.
Showing
20 changed files
with
644 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...submodules/pcf/src/main/java/org/eclipse/tractusx/sde/submodels/pcf/model/CompanyIds.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class CompanyIds { | ||
|
||
private String companyId; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...rc/main/java/org/eclipse/tractusx/sde/submodels/pcf/model/CrossSectoralStandardsUsed.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class CrossSectoralStandardsUsed { | ||
|
||
private String crossSectoralStandard; | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
...les/pcf/src/main/java/org/eclipse/tractusx/sde/submodels/pcf/model/DataQualityRating.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class DataQualityRating { | ||
|
||
private double completenessDQR; | ||
private double technologicalDQR; | ||
private double geographicalDQR; | ||
private double temporalDQR; | ||
private double reliabilityDQR; | ||
private double coveragePercent; | ||
|
||
} |
108 changes: 108 additions & 0 deletions
108
...es/sde-submodules/pcf/src/main/java/org/eclipse/tractusx/sde/submodels/pcf/model/Pcf.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import java.util.List; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class Pcf { | ||
|
||
private List<ProductOrSectorSpecificRules> productOrSectorSpecificRules; | ||
private List<SecondaryEmissionFactorSources> secondaryEmissionFactorSources; | ||
|
||
private DataQualityRating dataQualityRating; | ||
|
||
private List<CrossSectoralStandardsUsed> crossSectoralStandardsUsed; | ||
|
||
private double biogenicCarbonEmissionsOtherThanCO2; // 1.0, | ||
private double distributionStagePcfExcludingBiogenic; // 1.5, | ||
private double biogenicCarbonWithdrawal; // 0.0, | ||
private double distributionStageBiogenicCarbonEmissionsOtherThanCO2; // 1.0, | ||
|
||
@SerializedName("extWBCSD_allocationRulesDescription") | ||
private String extWBCSDAllocationRulesDescription;//In accordance with Catena-X PCF Rulebook | ||
|
||
private String exemptedEmissionsDescription;//No exemption | ||
private double distributionStageFossilGhgEmissions; // 0.5, | ||
private double exemptedEmissionsPercent; // 0.0, | ||
private String geographyCountrySubdivision;//US-NY | ||
|
||
@SerializedName("extTFS_luGhgEmissions") | ||
private double extTFSLuGhgEmissions; // 0.3, | ||
private double distributionStageBiogenicCarbonWithdrawal; // 0.5, | ||
private double pcfIncludingBiogenic; // 1.0, | ||
private double aircraftGhgEmissions; // 0.0, | ||
private double productMassPerDeclaredUnit; // 0.456, | ||
|
||
@SerializedName("extWBCSD_operator") | ||
private String extWBCSDOperator;//PEF | ||
|
||
private String ruleName;//urn:tfs-initiative.com:PCR:The Product Carbon Footprint Guideline for the Chemical Industry:version:v2.0 | ||
|
||
@SerializedName("extWBCSD_otherOperatorName") | ||
private String extWBCSDOtherOperatorName;//NSF | ||
|
||
@SerializedName("extTFS_allocationWasteIncineration") | ||
private String extTFSAllocationWasteIncineration;//cut-off | ||
private double pcfExcludingBiogenic; // 2.0, | ||
private String referencePeriodEnd;//2022-12-31T23:59:59Z | ||
|
||
@SerializedName("extWBCSD_characterizationFactors") | ||
private String extWBCSDCharacterizationFactors;//AR5 | ||
private String secondaryEmissionFactorSource;//ecoinvent 3.8 | ||
private double unitaryProductAmount; // 1000.0, | ||
private String declaredUnit;//liter | ||
private String referencePeriodStart;//2022-01-01T00:00:01Z | ||
private String geographyRegionOrSubregion;//Africa | ||
private double fossilGhgEmissions; // 0.5, | ||
private String boundaryProcessesDescription;//Electricity consumption included as an input in the production phase | ||
private String geographyCountry;//DE | ||
|
||
@SerializedName("extWBCSD_packagingGhgEmissions") | ||
private double extWBCSDPackagingGhgEmissions; // 0, | ||
private double dlucGhgEmissions; // 0.4, | ||
private double carbonContentTotal; // 2.5, | ||
|
||
@SerializedName("extTFS_distributionStageLuGhgEmissions") | ||
private double extTFSDistributionStageLuGhgEmissions; // 1.1, | ||
private double primaryDataShare; // 56.12, | ||
|
||
@SerializedName("extWBCSD_packagingEmissionsIncluded") | ||
private boolean extWBCSDPackagingEmissionsIncluded;//true | ||
|
||
@SerializedName("extWBCSD_fossilCarbonContent") | ||
private double extWBCSDFossilCarbonContent; // 0.1, | ||
|
||
private String crossSectoralStandard;//GHG Protocol Product standard | ||
|
||
@SerializedName("extTFS_distributionStageDlucGhgEmissions") | ||
private double extTFSDistributionStageDlucGhgEmissions; // 1.0, | ||
private double distributionStagePcfIncludingBiogenic; // 0.0, | ||
private double carbonContentBiogenic; // 0.0, | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
...s/pcf/src/main/java/org/eclipse/tractusx/sde/submodels/pcf/model/PcfSubmodelResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class PcfSubmodelResponse { | ||
|
||
private String specVersion; | ||
private CompanyIds companyIds; | ||
|
||
@SerializedName(value = "extWBCSD_productCodeCpc") | ||
private String extWBCSDProductCodeCpc; | ||
private String created; | ||
private String companyName; | ||
|
||
@SerializedName(value = "extWBCSD_pfStatus") | ||
private String extWBCSDPfStatus; | ||
private String productName; | ||
private double version; | ||
private Pcf pcf; | ||
private String partialFullPcf; | ||
private ProductIds productIds; | ||
private String validityPeriodStart; | ||
private String comment; | ||
private String id; | ||
private String validityPeriodEnd; | ||
private String pcfLegalStatement; | ||
private String productDescription; | ||
private PrecedingPfIds precedingPfIds; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...odules/pcf/src/main/java/org/eclipse/tractusx/sde/submodels/pcf/model/PrecedingPfIds.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class PrecedingPfIds { | ||
|
||
private String id; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...submodules/pcf/src/main/java/org/eclipse/tractusx/sde/submodels/pcf/model/ProductIds.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class ProductIds { | ||
|
||
private String productId; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...c/main/java/org/eclipse/tractusx/sde/submodels/pcf/model/ProductOrSectorSpecificRule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class ProductOrSectorSpecificRule { | ||
|
||
private String ruleName; | ||
|
||
} |
42 changes: 42 additions & 0 deletions
42
.../main/java/org/eclipse/tractusx/sde/submodels/pcf/model/ProductOrSectorSpecificRules.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class ProductOrSectorSpecificRules { | ||
|
||
@SerializedName(value = "extWBCSD_operator") | ||
private String extWBCSDOperator; | ||
|
||
@SerializedName(value = "productOrSectorSpecificRules") | ||
private ProductOrSectorSpecificRule productOrSectorSpecificRulesObj; | ||
|
||
@SerializedName(value = "extWBCSD_otherOperatorName") | ||
private String extWBCSDOtherOperatorName; | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
...ain/java/org/eclipse/tractusx/sde/submodels/pcf/model/SecondaryEmissionFactorSources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 T-Systems International GmbH | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.submodels.pcf.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
@AllArgsConstructor | ||
public class SecondaryEmissionFactorSources { | ||
|
||
private String secondaryEmissionFactorSource; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters