public static class RoutingModel.ResourceGroup
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RoutingModel.ResourceGroup.Attributes
Attributes for a dimension.
|
static class |
RoutingModel.ResourceGroup.Resource
A Resource sets attributes (costs/constraints) for a set of dimensions.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
ResourceGroup(long cPtr,
boolean cMemoryOwn) |
public static long getCPtr(RoutingModel.ResourceGroup obj)
public static long swigRelease(RoutingModel.ResourceGroup obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public int AddResource(RoutingModel.ResourceGroup.Attributes attributes, RoutingDimension dimension)
public void NotifyVehicleRequiresAResource(int vehicle)
public int[] GetVehiclesRequiringAResource()
public boolean VehicleRequiresAResource(int vehicle)
public void SetAllowedResourcesForVehicle(int vehicle, int[] allowed_resource_indices)
public void ClearAllowedResourcesForVehicle(int vehicle)
public SWIGTYPE_p_absl__flat_hash_setT_int_t GetResourcesMarkedAllowedForVehicle(int vehicle)
public boolean IsResourceAllowedForVehicle(int resource, int vehicle)
public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t GetResources()
public RoutingModel.ResourceGroup.Resource GetResource(int resource_index)
public SWIGTYPE_p_absl__flat_hash_setT_RoutingDimensionIndex_t GetAffectedDimensionIndices()
public int GetResourceClassesCount()
public int[] GetResourceIndicesInClass(int resource_class)
public SWIGTYPE_p_util_intops__StrongVectorT_operations_research__RoutingModel__ResourceClassIndex_std__vectorT_int_t_t GetResourceIndicesPerClass()
public int GetResourceClassIndex(int resource_index)
public RoutingModel.ResourceGroup.Attributes GetDimensionAttributesForClass(RoutingDimension dimension, int rc_index)
public int Size()
public int Index()
Copyright © 2025. All rights reserved.