Class DtoAllocationDependency
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoAllocationDependency
- All Implemented Interfaces:
IDtoAllocationDependency
An allocation dependency from some predecessor allocation to this (successor) allocation.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDtoAllocationDependency(String allocationPredecessor, Double transportationCost, Double transportationDuration) -
Method Summary
Modifier and TypeMethodDescriptionbooleanId of a result allocation that this depends on.The cost arising in transport form the predecessor allocation to the successor.The duration spent in transport form the predecessor allocation to the successor.inthashCode()voidsetAllocationPredecessor(String allocationPredecessor) Id of a result allocation that this depends on.voidsetTransportationCost(Double transportationCost) The cost arising in transport form the predecessor allocation to the successor.voidsetTransportationDuration(Double transportationDuration) The duration spent in transport form the predecessor allocation to the successor.withAllocationPredecessor(String allocationPredecessor) Id of a result allocation that this depends on.withTransportationCost(Double transportationCost) The cost arising in transport form the predecessor allocation to the successor.withTransportationDuration(Double transportationDuration) The duration spent in transport form the predecessor allocation to the successor.
-
Constructor Details
-
DtoAllocationDependency
protected DtoAllocationDependency() -
DtoAllocationDependency
-
-
Method Details
-
getAllocationPredecessor
Id of a result allocation that this depends on.- Specified by:
getAllocationPredecessorin interfaceIDtoAllocationDependency
-
setAllocationPredecessor
Id of a result allocation that this depends on.- Specified by:
setAllocationPredecessorin interfaceIDtoAllocationDependency
-
getTransportationCost
The cost arising in transport form the predecessor allocation to the successor.- Specified by:
getTransportationCostin interfaceIDtoAllocationDependency
-
setTransportationCost
The cost arising in transport form the predecessor allocation to the successor.- Specified by:
setTransportationCostin interfaceIDtoAllocationDependency
-
getTransportationDuration
The duration spent in transport form the predecessor allocation to the successor.- Specified by:
getTransportationDurationin interfaceIDtoAllocationDependency
-
setTransportationDuration
The duration spent in transport form the predecessor allocation to the successor.- Specified by:
setTransportationDurationin interfaceIDtoAllocationDependency
-
equals
-
hashCode
public int hashCode() -
withAllocationPredecessor
Id of a result allocation that this depends on. -
withTransportationCost
The cost arising in transport form the predecessor allocation to the successor. -
withTransportationDuration
The duration spent in transport form the predecessor allocation to the successor.
-