Metric Methods

You can use the methods below to ensure that weight, cost, and sustainability metrics respect their defined limits. They can also help you verify whether the values reach or miss their targets.

This page discusses:

GetMissingMetrics

This method retrieves the Missing analytics for a given metric.

You can use it when working in the Cost, Weight and Balance, or Environment domain. The list includes all the metrics available for the selected domain

.

Signature

GetMissingMetrics(iDomain : String, iOccurrences : List, iMetricNames : List) : List

Arguments

Input Input Type
ListOfReferences (iOccurrences) List of VPMReference
Domain name (iDomain) String
List of metrics (iMetricNames) String list

Output

List

The list includes as many elements as the number of references from the input list.

The result is a list of missing metrics that can be empty.

Note: The result is available at the same index in the result list as its input reference.

Example

	
Input list of references : reference 1  , reference 2 , reference 3
Input domain : “Cost”
Input metrics : “Duties”, “Transportation”
  Data : 
	Reference 1 : No Missing value for “Duties” metric, No Missing value for “Transportation” metric
	Reference 2 : Missing values for “Duties” metric, No Missing value for “Transportation” metric
	Reference 3: Missing values for “Duties” metric, Missing values for “Transportation” metric

  Output : 
	First element : {empty}
	Second element : {“Duties”}
	Third element : {“Duties”, “Transportation”}

GetMetricsOverTarget

This method retrieves the Reaching target analytics for a given metric.

You can use it when working in the Cost, Weight and Balance, or Environment domain. The list includes all the metrics available for the selected domain

Signature

GetMetricsOverTarget(iDomain : String, iOccurrences : List, iMetricNames : List, iTolerance : Real) : List

Arguments

Input Input Type
List of references (iOccurrences) List of VPMReference
Domain name (iDomain) String
List of metrics (iMetricNames) String list

Output

List

The list includes as many elements as the number of references from the input list.

The result is a list of metrics with a value over the target.

Note: The result is available at the same index in the result list as its input reference.

Example

Input list of occurrences : reference 1  , reference 2, reference 3 
Input domain : “Cost”
Input metrics : “Duties”, “Transportation”
Data : 
	Reference  1 : Value is over target for “Duties” metric, Value is over target for “Transportation” metric
	Reference 2 : Value is over target for “Duties” metric, value is not over target for “Transportation” metric
	Reference 3 :value is not over target for “Duties” metric, value is not over target for “Transportation” metric

Output : 
	First element : {“Duties”, “Transportation”}
	Second element : {“Duties”}
	Third element : {empty}

GetMetricsOver

This method retrieves the list of metrics for which the value of the first type of metric is over the value of the second type of metric for each occurrence.

You can use it when working in the Cost, Weight and Balance, or Environment domain. The list includes all the metrics available for the selected domain

Signature

GetMetricsOver(iDomain : String, iOccurrences : List, iMetricNames : List, iCompare : String, iCompareTo : String, iTolerance : Real) : List

Arguments

Input Input Type
List of references (iOccurrences) List of VPMReference
Domain name (iDomain) String
List of metrics (iMetricNames) String list
Tolerance (iTolerance) Real: a value between 0 and 1
The first type of metric (iCompare) String

For the Weight and Balance domain, the first metric type can be:

  • Measured
  • Declared
  • Computed
  • Estimated
  • Inherited

For the Cost domain, the first metric type can be:

  • Actual
  • Firm
  • Should Cost
  • Estimated
  • Inherited

The second type of metric (iCompareTo) String

For the Weight and Balance domain, the second metric type can be:

  • Declared
  • Computed
  • Estimated
  • Inherited

For the Cost domain, the second metric type can be:

  • Firm
  • Should Cost
  • Estimated
  • Inherited

Output

List

The list includes as many elements as the number of references from the input list.

The result is a list of metrics where the value of the first type of metric is over the value of the second type of metric. The tolerance is considered, if defined.

Note: The result is available at the same index in the result list as its input reference.

Example

Input list of occurrences : reference 1  ,reference 2, reference 3 
Input domain : “Cost”
Input metrics : “Duties”, “Transportation”
Tolerance : 0.1
First type of metric : Actual
Second type of metric : Estimated
  Data : 
        Each comparison take into account the tolerance
        Reference 1 : Actual is over Estimated for “Duties” metric , Actual is over Estimated for “Transportation” metric 
        Reference 2 : Actual is over Estimated for  “Duties” metric, Actual is not over Estimated for  “Transportation” metric
        Reference  3: Actual is not over Estimated for “Duties” metric, Actual is not over Estimated for “Transportation” metric

  Output : 
        First element : {“Duties”, “Transportation”}
        Second element : {“Duties”}
        Third element : {empty}