Skip to content

Commit

Permalink
Merge pull request #3599 from matsim-org/kmt_addCarrierJobInterface
Browse files Browse the repository at this point in the history
Freight: Add a CarrierJob interface
  • Loading branch information
kt86 authored Dec 2, 2024
2 parents b5c1e5b + 95dee83 commit 166a09f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.matsim.freight.carriers;

import org.matsim.utils.objectattributes.attributable.Attributable;

/**
* A job that a {@link Carrier} can do.
* <p>
* In a first step this is more or less a marker interface.
* <p>
* In the next steps it will be extended, as follows
* 1) existing common methods of {@link CarrierShipment} and {@link
* CarrierService} where moved up here
* 2) some similiar, but differently named methods of {@link
* CarrierShipment} and {@link CarrierService} were renamed to the same name and moved up here
* ...
* future) It maybe gets generalized in way, that we only have one job definition with 1 or 2
* location(s). This then defines, if jsprit takes the job as a service or as a shipment.
*/
public interface CarrierJob extends Attributable {}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.matsim.utils.objectattributes.attributable.AttributesImpl;


public final class CarrierService implements Attributable {
public final class CarrierService implements CarrierJob {

public static class Builder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author sschroeder
*
*/
public final class CarrierShipment implements Attributable {
public final class CarrierShipment implements CarrierJob {

/**
* A builder that builds shipments.
Expand Down

0 comments on commit 166a09f

Please sign in to comment.