Class DtoTransportation
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoTransportation
- All Implemented Interfaces:
IDtoTransportation
Details about a transportation from one device to another or itself. Transportations happen between jobs that have a dependency between them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCost()Cost of this transportation.Duration of this transportation.getFrom()Id of the device of the predecessor.getId()Unique identifier among all DtoTransportationgetTo()Id of the device of the successor.inthashCode()voidCost of this transportation.voidsetDuration(Long duration) Duration of this transportation.voidId of the device of the predecessor.voidUnique identifier among all DtoTransportationvoidId of the device of the successor.Cost of this transportation.withDuration(Long duration) Duration of this transportation.Id of the device of the predecessor.Unique identifier among all DtoTransportationId of the device of the successor.
-
Constructor Details
-
DtoTransportation
protected DtoTransportation() -
DtoTransportation
-
-
Method Details
-
getId
Unique identifier among all DtoTransportation- Specified by:
getIdin interfaceIDtoTransportation
-
setId
Unique identifier among all DtoTransportation- Specified by:
setIdin interfaceIDtoTransportation
-
getTo
Id of the device of the successor.- Specified by:
getToin interfaceIDtoTransportation
-
setTo
Id of the device of the successor.- Specified by:
setToin interfaceIDtoTransportation
-
getFrom
Id of the device of the predecessor.- Specified by:
getFromin interfaceIDtoTransportation
-
setFrom
Id of the device of the predecessor.- Specified by:
setFromin interfaceIDtoTransportation
-
getCost
Cost of this transportation.- Specified by:
getCostin interfaceIDtoTransportation
-
setCost
Cost of this transportation.- Specified by:
setCostin interfaceIDtoTransportation
-
getDuration
Duration of this transportation.- Specified by:
getDurationin interfaceIDtoTransportation
-
setDuration
Duration of this transportation.- Specified by:
setDurationin interfaceIDtoTransportation
-
withId
Unique identifier among all DtoTransportation -
withTo
Id of the device of the successor. -
withFrom
Id of the device of the predecessor. -
withCost
Cost of this transportation. -
withDuration
Duration of this transportation. -
equals
-
hashCode
public int hashCode()
-