Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup Class Reference
Inheritance diagram for Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup:

Classes

class  Attributes
 
class  Resource
 

Public Member Functions

void Dispose ()
 
int AddResource (RoutingModel.ResourceGroup.Attributes attributes, RoutingDimension dimension)
 
void NotifyVehicleRequiresAResource (int vehicle)
 
int[] GetVehiclesRequiringAResource ()
 
bool VehicleRequiresAResource (int vehicle)
 
void SetAllowedResourcesForVehicle (int vehicle, int[] allowed_resource_indices)
 
void ClearAllowedResourcesForVehicle (int vehicle)
 
SWIGTYPE_p_absl__flat_hash_setT_int_t GetResourcesMarkedAllowedForVehicle (int vehicle)
 
bool IsResourceAllowedForVehicle (int resource, int vehicle)
 
SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t GetResources ()
 
RoutingModel.ResourceGroup.Resource GetResource (int resource_index)
 
SWIGTYPE_p_absl__flat_hash_setT_RoutingDimensionIndex_t GetAffectedDimensionIndices ()
 
int GetResourceClassesCount ()
 
int[] GetResourceIndicesInClass (int resource_class)
 
SWIGTYPE_p_util_intops__StrongVectorT_operations_research__RoutingModel__ResourceClassIndex_std__vectorT_int_t_t GetResourceIndicesPerClass ()
 
int GetResourceClassIndex (int resource_index)
 
int Size ()
 
int Index ()
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Protected Attributes

bool swigCMemOwn
 

Detailed Description

Definition at line 257 of file RoutingModel.cs.

Member Function Documentation

◆ AddResource()

int Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.AddResource ( RoutingModel.ResourceGroup.Attributes attributes,
RoutingDimension dimension )
inline

Definition at line 424 of file RoutingModel.cs.

◆ ClearAllowedResourcesForVehicle()

void Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.ClearAllowedResourcesForVehicle ( int vehicle)
inline

Definition at line 455 of file RoutingModel.cs.

◆ Dispose() [1/2]

void Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.Dispose ( )
inline

Definition at line 287 of file RoutingModel.cs.

◆ Dispose() [2/2]

virtual void Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.Dispose ( bool disposing)
inlineprotectedvirtual

Definition at line 292 of file RoutingModel.cs.

◆ GetAffectedDimensionIndices()

SWIGTYPE_p_absl__flat_hash_setT_RoutingDimensionIndex_t Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.GetAffectedDimensionIndices ( )
inline

Definition at line 479 of file RoutingModel.cs.

◆ GetResource()

RoutingModel.ResourceGroup.Resource Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.GetResource ( int resource_index)
inline

Definition at line 474 of file RoutingModel.cs.

◆ GetResourceClassesCount()

int Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.GetResourceClassesCount ( )
inline

Definition at line 484 of file RoutingModel.cs.

◆ GetResourceClassIndex()

int Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.GetResourceClassIndex ( int resource_index)
inline

Definition at line 506 of file RoutingModel.cs.

◆ GetResourceIndicesInClass()

int[] Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.GetResourceIndicesInClass ( int resource_class)
inline

Definition at line 489 of file RoutingModel.cs.

◆ GetResourceIndicesPerClass()

SWIGTYPE_p_util_intops__StrongVectorT_operations_research__RoutingModel__ResourceClassIndex_std__vectorT_int_t_t Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.GetResourceIndicesPerClass ( )
inline

Definition at line 501 of file RoutingModel.cs.

◆ GetResources()

SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__ResourceGroup__Resource_t Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.GetResources ( )
inline

Definition at line 469 of file RoutingModel.cs.

◆ GetResourcesMarkedAllowedForVehicle()

SWIGTYPE_p_absl__flat_hash_setT_int_t Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.GetResourcesMarkedAllowedForVehicle ( int vehicle)
inline

Definition at line 459 of file RoutingModel.cs.

◆ GetVehiclesRequiringAResource()

int[] Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.GetVehiclesRequiringAResource ( )
inline

Definition at line 434 of file RoutingModel.cs.

◆ Index()

int Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.Index ( )
inline

Definition at line 515 of file RoutingModel.cs.

◆ IsResourceAllowedForVehicle()

bool Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.IsResourceAllowedForVehicle ( int resource,
int vehicle )
inline

Definition at line 464 of file RoutingModel.cs.

◆ NotifyVehicleRequiresAResource()

void Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.NotifyVehicleRequiresAResource ( int vehicle)
inline

Definition at line 430 of file RoutingModel.cs.

◆ SetAllowedResourcesForVehicle()

void Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.SetAllowedResourcesForVehicle ( int vehicle,
int[] allowed_resource_indices )
inline

Definition at line 451 of file RoutingModel.cs.

◆ Size()

int Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.Size ( )
inline

Definition at line 510 of file RoutingModel.cs.

◆ VehicleRequiresAResource()

bool Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.VehicleRequiresAResource ( int vehicle)
inline

Definition at line 446 of file RoutingModel.cs.

Member Data Documentation

◆ swigCMemOwn

bool Google.OrTools.ConstraintSolver.RoutingModel.ResourceGroup.swigCMemOwn
protected

Definition at line 259 of file RoutingModel.cs.


The documentation for this class was generated from the following file: