FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.solutionSpaces.vehiclerouting.Customer Class Reference

A customer in the Vehicle Routing Problem. More...

Inheritance diagram for frodo2.solutionSpaces.vehiclerouting.Customer:

Public Member Functions

 Customer (int id, int demand, double x, double y, double radius, AddableInteger[] angles)
 Constructor.
String toString ()
double doubleValue ()
Customer clone ()
boolean equals (Object o)
int hashCode ()

Package Functions

void setPosition (int angle)
 Computes the exact position of the customer.

Package Attributes

final int id
 The customer ID.
int demand
 The current customer demand.
AddableInteger[] angles
 The possible angles for the position of this customer on the circle centered at (xInit, yInit) or radius this.radius.

Private Attributes

final double xInit
 The initial X coordinate.
double x
 The current X coordinate.
final double yInit
 The initial Y coordinate.
double y
 The current Y coordinate.
final double radius
 The radius of uncertainty on the position of this customer.

Static Private Attributes

static final long serialVersionUID = -5719623691432541492L
 Used for serialization.

Detailed Description

A customer in the Vehicle Routing Problem.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ Customer()

frodo2.solutionSpaces.vehiclerouting.Customer.Customer ( int id,
int demand,
double x,
double y,
double radius,
AddableInteger[] angles )

Constructor.

Parameters
idThe customer ID
demandThe customer demand
xThe X coordinate
yThe Y coordinate
radiusThe radius of uncertainty on the position of this customer
anglesThe possible angles for the position of this customer on the circle centered at (xInit, yInit) or radius this.radius

References angles, demand, id, radius, x, and y.

Referenced by clone(), and equals().

Member Function Documentation

◆ clone()

Customer frodo2.solutionSpaces.vehiclerouting.Customer.clone ( )
See also
java.lang.Object#clone()

References Customer().

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

Here is the call graph for this function:

◆ doubleValue()

double frodo2.solutionSpaces.vehiclerouting.Customer.doubleValue ( )
See also
DoubleI#doubleValue()

◆ equals()

boolean frodo2.solutionSpaces.vehiclerouting.Customer.equals ( Object o)
See also
Point#equals(java.lang.Object)

References Customer(), and id.

Here is the call graph for this function:

◆ hashCode()

int frodo2.solutionSpaces.vehiclerouting.Customer.hashCode ( )
See also
Point#hashCode()

◆ setPosition()

void frodo2.solutionSpaces.vehiclerouting.Customer.setPosition ( int angle)
package

Computes the exact position of the customer.

Parameters
anglethe positional angle of the customer on the circle or radius this.radius centered at (this.xInit, this.yInit)
Bug
Does not change the coordinates from the point of view of the super class

Referenced by frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.getUtility(), and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.getUtility().

◆ toString()

String frodo2.solutionSpaces.vehiclerouting.Customer.toString ( )
See also
java.lang.Object#toString()

Member Data Documentation

◆ angles

AddableInteger [] frodo2.solutionSpaces.vehiclerouting.Customer.angles
package

The possible angles for the position of this customer on the circle centered at (xInit, yInit) or radius this.radius.

Referenced by Customer(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.slice(), and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VehicleRoutingSpace().

◆ demand

◆ id

final int frodo2.solutionSpaces.vehiclerouting.Customer.id
package

The customer ID.

Referenced by Customer(), and equals().

◆ radius

final double frodo2.solutionSpaces.vehiclerouting.Customer.radius
private

The radius of uncertainty on the position of this customer.

Referenced by Customer().

◆ serialVersionUID

final long frodo2.solutionSpaces.vehiclerouting.Customer.serialVersionUID = -5719623691432541492L
staticprivate

Used for serialization.

◆ x

double frodo2.solutionSpaces.vehiclerouting.Customer.x
private

The current X coordinate.

Referenced by Customer().

◆ xInit

final double frodo2.solutionSpaces.vehiclerouting.Customer.xInit
private

The initial X coordinate.

◆ y

double frodo2.solutionSpaces.vehiclerouting.Customer.y
private

The current Y coordinate.

Referenced by Customer().

◆ yInit

final double frodo2.solutionSpaces.vehiclerouting.Customer.yInit
private

The initial Y coordinate.


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