Class RoutingProposalDTO

java.lang.Object
de.aeb.xnsg.simplerouting.bf.RoutingProposalDTO

public class RoutingProposalDTO extends Object
Main DTO to hold data on a proposal.
Each leg contains information on services enriched with supplements as additional information. The entirety of legs describes one proposal.

Individual proposals are comparable by their score and can be ordered by their sortNumber. Score and sortNumber are calculated based on supplements by a rating profile. Two proposals might have the same score but have different sort numbers.
  • Field Details

    • legs

      public RoutingLegProposalDTO[] legs
      The legs ('parts') of a whole transport chain. Typically only one element.
    • score

      public BigDecimal score
      Score of the proposal. Proposals may have equal score if they are ranked as equal by the rating profile.

      length = 15 <\p>

      scale = 3 <\p>

    • sortNumber

      public Integer sortNumber
      1,2,3,...

      length = 10 <\p>

    • effectiveSupplements

      public RoutingSupplementDTO[] effectiveSupplements
      Array of supplements for this routing proposal.
    • routeSchedule

      public RouteScheduleDTO routeSchedule
      Schedule calculation information of the proposal. If not provided, no schedule calculation has been done for the route.
  • Constructor Details

    • RoutingProposalDTO

      public RoutingProposalDTO()