Class SupplyResult
- java.lang.Object
-
- com.supermap.analyst.networkanalyst.SupplyResult
-
public class SupplyResult extends java.lang.Object
The supply center point result class.Gets the result of resource supply,including type,ID,maximum impedance and so on.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
Release the resource occupy by this object.double
getActualResourceValue()
Gets the actual resource supply value.double
getAverageWeight()
Returns the average cost, i.e., the total cost is divided by the number of the demand nodes.int
getDemandCount()
Returns the count of demand points that the supply center serves for.int
getID()
Gets the ID of the supply center.double
getMaxWeight()
Returns the maximum cost (impedance) of the supply center.double
getResourceValue()
Gets the amount of the resource of the supply center.double
getTotalWeights()
Returns the total cost.SupplyCenterType
getType()
Returns the type of the supply center.
-
-
-
Method Detail
-
getType
public SupplyCenterType getType()
Returns the type of the supply center.The type of the resource supply center can be FIXEDCENTER, OPTIONALCENTER, and NONE. The allocation analysis employes the FIXEDCENTER type; The location analysis employs the FIXEDCENTER and OPTIONALCENTER types. NONE is employed by neither location analysis nor allocation analysis.
- Returns:
- The supply center type.
- See Also:
SupplyCenterType
-
getID
public int getID()
Gets the ID of the supply center.- Returns:
- The supply center ID.
-
getMaxWeight
public double getMaxWeight()
Returns the maximum cost (impedance) of the supply center. It has the same unit with the weight field of the object that is specified by the property of the object.Maximum Impedance is used to restrict the costs from the demand points to the center. If the costs from the demand points (nodes) to the centers are higher than the maximum impedance, the demand points are filtered out. The maximum impedance can be edited.
- Returns:
- The impedance of the supply center.
-
getResourceValue
public double getResourceValue()
Gets the amount of the resource of the supply center.The amount of the resources represents the maximum provision of services and goods. It is changeable.
- Returns:
- The amount of the resource of the supply center.
-
getTotalWeights
public double getTotalWeights()
Returns the total cost. It has the same unit with the weight field of the {LocationAnalystParameter
} object that is specified by the {LocationAnalystParameter
} method of the {LocationAnalystParameter
} object.When the location-allocation analysis selects to allocate the resources from the supply center, the total cost is the sum of the cost from the supply center to all the demand nodes; conversely, when the resources are not be allocated from the supply center, the total cost is the sum of the cost from all the demand centers to the supply center.
- Returns:
- The total weights.
-
getDemandCount
public int getDemandCount()
Returns the count of demand points that the supply center serves for.- Returns:
- The count of demand points.
-
getActualResourceValue
public double getActualResourceValue()
Gets the actual resource supply value.- Returns:
- The actual resource supply value.
-
getAverageWeight
public double getAverageWeight()
Returns the average cost, i.e., the total cost is divided by the number of the demand nodes. It has the same unit with the weight field of theLocationAnalystParameter
object that is specified by theLocationAnalystParameter
property of theLocationAnalystParameter
object.- Returns:
- The average weight.
-
dispose
public void dispose()
Release the resource occupy by this object.
-
-