Skip to content

Commit

Permalink
core: value: package value object, inject accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
Peva Blanchard committed Oct 26, 2023
1 parent e9133f1 commit f1cba8a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ data class FromProcessRefValue<Q>(
val name: String,
val matchLabels: Map<String, StringValue<Q>> = emptyMap(),
val arguments: Map<String, DataValue<Q>> = emptyMap(),
val pkg: PackageValue<Q>,
)
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ sealed interface SubstanceValue<Q> : Value<Q>, MatrixColumnIndex<Q>
data class PartiallyQualifiedSubstanceValue<Q>(
val name: String,
val referenceUnit: UnitValue<Q>,
val pkg: PackageValue<Q>,
) : SubstanceValue<Q> {
override fun getDimension(): Dimension {
return referenceUnit.dimension
Expand Down Expand Up @@ -117,6 +118,7 @@ data class FullyQualifiedSubstanceValue<Q>(
val compartment: String,
val subcompartment: String?,
val referenceUnit: UnitValue<Q>,
val pkg: PackageValue<Q>,
) : SubstanceValue<Q> {
override fun getDimension(): Dimension {
return referenceUnit.dimension
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package ch.kleis.lcaac.core.lang.value

data class PackageValue<Q>(
val name: String,
val arguments: Map<String, DataValue<Q>> = emptyMap(),
val with: Map<String, ProductValue<Q>> = emptyMap(),
)

0 comments on commit f1cba8a

Please sign in to comment.