public class ResourceMapArrayBridge extends Object
NormalizedResources.| Constructor and Description |
|---|
ResourceMapArrayBridge() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
empty()
Create an array that has all values 0.
|
Map<String,Integer> |
getResourceNamesToArrayIndex() |
Map<String,Double> |
translateFromResourceArray(double[] resources)
Translates an array of resource values to a normalized resource map.
|
double[] |
translateToResourceArray(Map<String,Double> normalizedResources)
Translates a normalized resource map to an array of resource values.
|
public double[] translateToResourceArray(Map<String,Double> normalizedResources)
normalizedResources - The resources to translate to an arraypublic double[] empty()
public Map<String,Double> translateFromResourceArray(double[] resources)
resources - The resource array to translateCopyright © 2023 The Apache Software Foundation. All rights reserved.