FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > > Class Template Reference

Convenience class used by the iterator. More...

Inheritance diagram for frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >:

Public Member Functions

 CustomerAssignment (AddableInteger[] assignment)
 Constructor.
 CustomerAssignment (AddableInteger[] assignment, U utility)
 Constructor.
void setUtility (VehicleRoutingSpace< U > space)
 Calculate the utility of the assignment.
boolean equals (Object o)
int hashCode ()
int compareTo (CustomerAssignment< U > o)
AddableInteger[] getAssignment ()
getUtility ()
ArrayList< CustomerAssignment< U > > generateAssignmentList (AddableInteger zero, AddableInteger one, boolean[] fixed)
 Method to generate a batch of new customer assignments based on this assignment.
String toString ()

Private Attributes

AddableInteger[] assignment
 A customer assignment.
utility
 The utility of the assignment.

Detailed Description

Convenience class used by the iterator.

It is outside and static to reduce memory consumption.

Author
Brammert Ottens, 27 apr 2010
Parameters
<U>the type of the utility values

Constructor & Destructor Documentation

◆ CustomerAssignment() [1/2]

Constructor.

Parameters
assignmenta customer assignment

References assignment.

Referenced by compareTo(), equals(), and generateAssignmentList().

◆ CustomerAssignment() [2/2]

Constructor.

Parameters
assignmenta customer assignment
utilitythe corresponding utility

References assignment, and utility.

Member Function Documentation

◆ compareTo()

See also
java.lang.Comparable#compareTo(java.lang.Object)

References CustomerAssignment(), and utility.

Here is the call graph for this function:

◆ equals()

boolean frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.equals ( Object o)
See also
java.lang.Object#equals(java.lang.Object)

References assignment, CustomerAssignment(), and equals().

Referenced by equals(), and generateAssignmentList().

Here is the call graph for this function:

◆ generateAssignmentList()

ArrayList< CustomerAssignment< U > > frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.generateAssignmentList ( AddableInteger zero,
AddableInteger one,
boolean[] fixed )

Method to generate a batch of new customer assignments based on this assignment.

Every new assignment is equal to the old one, safe that one previously unserved customer is added

Author
Brammert Ottens, 28 apr 2010
Parameters
zerothe domain value zero
onethe domain value one
fixedtells this method which variables are not to be changed
Returns
a set of new customer assignments
Todo
This seems useless.

References assignment, CustomerAssignment(), equals(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.one, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.zero.

Referenced by frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VRPiteratorBestFirst.iter().

Here is the call graph for this function:

◆ getAssignment()

◆ getUtility()

Author
Brammert Ottens, 28 apr 2010
Returns
the utility of the assignment

Referenced by frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VRPiteratorBestFirst.iter().

◆ hashCode()

See also
java.lang.Object#hashCode()

References assignment, and hashCode().

Referenced by hashCode(), and toString().

Here is the call graph for this function:

◆ setUtility()

void frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.setUtility ( VehicleRoutingSpace< U > space)

Calculate the utility of the assignment.

Author
Brammert Ottens, 4 mei 2010
Parameters
spacethe space used to calculate the utility

References assignment, frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.getUtility(), utility, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VehicleRoutingSpace().

Here is the call graph for this function:

◆ toString()

String frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.toString ( )
See also
java.lang.Object#toString()

References hashCode(), and utility.

Here is the call graph for this function:

Member Data Documentation

◆ assignment

◆ utility

U frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.utility
private

The utility of the assignment.

Referenced by compareTo(), CustomerAssignment(), setUtility(), and toString().


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