net.sf.cpsolver.studentsct.extension
Class DistanceConflict.Conflict

java.lang.Object
  extended by net.sf.cpsolver.studentsct.extension.DistanceConflict.Conflict
Enclosing class:
DistanceConflict

public class DistanceConflict.Conflict
extends Object

A representation of a distance conflict


Constructor Summary
DistanceConflict.Conflict(double weight, Student student, Section s1, Section s2)
          Constructor
 
Method Summary
 boolean equals(Object o)
           
 double getDistance()
          The distance between conflicting sections
 Section getS1()
          First section
 Section getS2()
          Second section
 Student getStudent()
          Related student
 double getWeight()
          Conflict weight
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistanceConflict.Conflict

public DistanceConflict.Conflict(double weight,
                                 Student student,
                                 Section s1,
                                 Section s2)
Constructor

Parameters:
weight - conflict weight
student - related student
s1 - first conflicting section
s2 - second conflicting section
Method Detail

getWeight

public double getWeight()
Conflict weight


getStudent

public Student getStudent()
Related student


getS1

public Section getS1()
First section


getS2

public Section getS2()
Second section


hashCode

public int hashCode()
Overrides:
hashCode in class Object

getDistance

public double getDistance()
The distance between conflicting sections


equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object