Search in sources :

Example 1 with Operator

use of org.opentripplanner.model.Operator in project OpenTripPlanner by opentripplanner.

the class NetexLoaderSmokeTest method assertOperators.

private void assertOperators(Collection<Operator> operators) {
    assertEquals(1, operators.size());
    Operator o = list(operators).get(0);
    assertEquals("RUT:Operator:130c", o.getId().getId());
    assertEquals("Ruter", o.getName());
    assertNull(o.getUrl());
    assertNull(o.getPhone());
}
Also used : Operator(org.opentripplanner.model.Operator)

Example 2 with Operator

use of org.opentripplanner.model.Operator in project OpenTripPlanner by opentripplanner.

the class OperatorToAgencyMapper method mapOperator.

Operator mapOperator(org.rutebanken.netex.model.Operator source) {
    Operator target = new Operator();
    target.setId(idFactory.createId(source.getId()));
    target.setName(source.getName().getValue());
    mapContactDetails(source.getContactDetails(), target);
    return target;
}
Also used : Operator(org.opentripplanner.model.Operator)

Aggregations

Operator (org.opentripplanner.model.Operator)2