## Uses of Class
org.cpsolver.ifs.util.DistanceMetric

- Packages that use DistanceMetric
  Package | Description
  --- | ---
  org.cpsolver.coursett.constraint | University Course Timetabling: Constraints.
  org.cpsolver.coursett.criteria | University Course Timetabling: Criteria.
  org.cpsolver.coursett.model | University Course Timetabling: Model.
  org.cpsolver.exam.model | Examination Timetabling: Model.
  org.cpsolver.ifs.util | Utilities
  org.cpsolver.studentsct | Student Sectioning Solver.
  org.cpsolver.studentsct.extension | Student Sectioning: Various Extensions.

- - ### Uses of DistanceMetric in org.cpsolver.coursett.constraint

    Methods in org.cpsolver.coursett.constraint that return DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `protected DistanceMetric` | InstructorConstraint.`getDistanceMetric()`

    Methods in org.cpsolver.coursett.constraint with parameters of type DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | JenrlConstraint.`isInConflict(Placement p1, Placement p2, DistanceMetric m, int workDayLimit)` Returns true if the given placements are overlapping or they are back-to-back and too far for students.

  - ### Uses of DistanceMetric in org.cpsolver.coursett.criteria

    Methods in org.cpsolver.coursett.criteria that return DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `DistanceMetric` | StudentConflict.`getMetrics()`

    Methods in org.cpsolver.coursett.criteria with parameters of type DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | StudentConflict.`distance(DistanceMetric m, Placement p1, Placement p2)`

  - ### Uses of DistanceMetric in org.cpsolver.coursett.model

    Methods in org.cpsolver.coursett.model that return DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `DistanceMetric` | TimetableModel.`getDistanceMetric()`

    Methods in org.cpsolver.coursett.model with parameters of type DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `static double` | Placement.`getDistanceInMeters(DistanceMetric m, Placement p1, Placement p2)` Distance between two placements
    `double` | RoomLocation.`getDistanceInMeters(DistanceMetric m, RoomLocation roomLocation)`
    `static int` | Placement.`getDistanceInMinutes(DistanceMetric m, Placement p1, Placement p2)` Distance between two placements
    `int` | RoomLocation.`getDistanceInMinutes(DistanceMetric m, RoomLocation roomLocation)`

  - ### Uses of DistanceMetric in org.cpsolver.exam.model

    Methods in org.cpsolver.exam.model that return DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `DistanceMetric` | ExamModel.`getDistanceMetric()`

  - ### Uses of DistanceMetric in org.cpsolver.ifs.util

    Constructors in org.cpsolver.ifs.util with parameters of type DistanceMetric
    Constructor and Description
    `DistanceMetric(DistanceMetric m)`

  - ### Uses of DistanceMetric in org.cpsolver.studentsct

    Methods in org.cpsolver.studentsct that return DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `DistanceMetric` | StudentSectioningModel.`getDistanceMetric()`

    Methods in org.cpsolver.studentsct with parameters of type DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | StudentSectioningXMLLoader.`loadTravelTimes(Element travelTimesEl, DistanceMetric metric)` Load travel times

  - ### Uses of DistanceMetric in org.cpsolver.studentsct.extension

    Methods in org.cpsolver.studentsct.extension that return DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `DistanceMetric` | DistanceConflict.`getDistanceMetric()`
    `DistanceMetric` | StudentQuality.`getDistanceMetric()` Current distance metric
    `DistanceMetric` | StudentQuality.Context.`getDistanceMetric()`
    `DistanceMetric` | StudentQuality.Context.`getUnavailabilityDistanceMetric()`

    Methods in org.cpsolver.studentsct.extension with parameters of type DistanceMetric
    Modifier and Type | Method and Description
    --- | ---
    `double` | DistanceConflict.Conflict.`getDistance(DistanceMetric dm)` The distance between conflicting sections

    Constructors in org.cpsolver.studentsct.extension with parameters of type DistanceMetric
    Constructor and Description
    `Context(DistanceMetric dm, DataProperties config)`
    `DistanceConflict(DistanceMetric metrics, DataProperties properties)` Alternative constructor (for online student sectioning)
    `StudentQuality(DistanceMetric metrics, DataProperties properties)` Constructor