Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.optaplanner.examples.vehiclerouting.domain
Class Customer

    java.lang.Object
      org.optaplanner.examples.common.domain.AbstractPersistable
          org.optaplanner.examples.vehiclerouting.domain.Customer

All Implemented Interfaces:
  Serializable, Comparable<AbstractPersistable>, Standstill

Direct Known Subclasses:
  TimeWindowedCustomer

    public class Customer

extends AbstractPersistable
implements Standstill

See Also:
  Serialized Form

Field Summary
`protected int` | `demand`
`protected Location` | `location`
`protected Customer` | `nextCustomer`
`protected Standstill` | `previousStandstill`
`protected Vehicle` | `vehicle`

Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
`id`

Constructor Summary
`Customer()`

Method Summary
`int` | `getDemand()`
`Location` | `getLocation()`
`int` | `getMilliDistanceTo(Standstill standstill)`
`int` | `getMilliDistanceToPreviousStandstill()`
`Customer` | `getNextCustomer()`
`Standstill` | `getPreviousStandstill()`
`Vehicle` | `getVehicle()`
`void` | `setDemand(int demand)`
`void` | `setLocation(Location location)`
`void` | `setNextCustomer(Customer nextCustomer)`
`void` | `setPreviousStandstill(Standstill previousStandstill)`
`void` | `setVehicle(Vehicle vehicle)`
`boolean` | `solutionEquals(Object o)` The normal methods `Object.equals(Object)` and `Object.hashCode()` cannot be used because the rule engine already requires them (for performance in their original state).
`int` | `solutionHashCode()` The normal methods `Object.equals(Object)` and `Object.hashCode()` cannot be used because the rule engine already requires them (for performance in their original state).
`String` | `toString()`

Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
`compareTo, getId, setId`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### location

    protected Location location

### demand

    protected int demand

### previousStandstill

    protected Standstill previousStandstill

### nextCustomer

    protected Customer nextCustomer

### vehicle

    protected Vehicle vehicle

Constructor Detail

### Customer

    public Customer()

Method Detail

### getLocation

    public Location getLocation()

  Specified by:
    `getLocation` in interface `Standstill`
  Returns:
    never null

### setLocation

    public void setLocation(Location location)

### getDemand

    public int getDemand()

### setDemand

    public void setDemand(int demand)

### getPreviousStandstill

    public Standstill getPreviousStandstill()

### setPreviousStandstill

    public void setPreviousStandstill(Standstill previousStandstill)

### getNextCustomer

    public Customer getNextCustomer()

  Specified by:
    `getNextCustomer` in interface `Standstill`
  Returns:
    sometimes null

### setNextCustomer

    public void setNextCustomer(Customer nextCustomer)

  Specified by:
    `setNextCustomer` in interface `Standstill`

### getVehicle

    public Vehicle getVehicle()

  Specified by:
    `getVehicle` in interface `Standstill`
  Returns:
    sometimes null

### setVehicle

    public void setVehicle(Vehicle vehicle)

### getMilliDistanceToPreviousStandstill

    public int getMilliDistanceToPreviousStandstill()

  Returns:
    a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors

### getMilliDistanceTo

    public int getMilliDistanceTo(Standstill standstill)

  Parameters:
    `standstill` - never null
  Returns:
    a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors

### solutionEquals

    public boolean solutionEquals(Object o)

  The normal methods `Object.equals(Object)` and `Object.hashCode()` cannot be used because the rule engine already requires them (for performance in their original state).

  See Also:
    `solutionHashCode()`

### solutionHashCode

    public int solutionHashCode()

  The normal methods `Object.equals(Object)` and `Object.hashCode()` cannot be used because the rule engine already requires them (for performance in their original state).

  See Also:
    `solutionEquals(Object)`

### toString

    public String toString()

  Overrides:
    `toString` in class `AbstractPersistable`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.