Class Quotation

java.lang.Object
be.gaudry.model.edu.score.Quotation

public class Quotation extends Object
Since:
1.0 Oct 12, 2008, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
  • Constructor Details

    • Quotation

      @Deprecated public Quotation()
      Deprecated.
      Creates a new Quotation with all default values :
      • date : now
      • value : 0
      • maximum : 10
    • Quotation

      @Deprecated public Quotation(double value)
      Deprecated.
      Creates a new Quotation with some default values :
      • date : now
      • maximum : 10
      Parameters:
      value - value to set
    • Quotation

      @Deprecated public Quotation(int id, double value)
      Deprecated.
      Creates a new Quotation with some default values :
      • date : now
      • maximum : 10
      Parameters:
      id -
      value - value to set
    • Quotation

      @Deprecated public Quotation(double value, int maximum)
      Deprecated.
      Creates a new Quotation with default Date (now)
      Parameters:
      value - value to set
      maximum - maximum of the value
    • Quotation

      @Deprecated public Quotation(int id, double value, int maximum)
      Deprecated.
      Creates a new Quotation with default Date (now)
      Parameters:
      id -
      value - value to set
      maximum - maximum of the value
    • Quotation

      @Deprecated public Quotation(Date date, double value, int maximum)
      Deprecated.
      Creates a new Quotation
      Parameters:
      date - date of the quotation
      value - value to set
      maximum - maximum of the value
    • Quotation

      @Deprecated public Quotation(int id, Date date, double value, int maximum)
      Deprecated.
      Creates a new Quotation
      Parameters:
      id -
      date - date of the quotation
      value - value to set
      maximum - maximum of the value
    • Quotation

      public Quotation(Examination examination)
    • Quotation

      public Quotation(Examination examination, double value) throws OutOfBoundException
      Throws:
      OutOfBoundException
  • Method Details

    • getExamination

      public Examination getExamination()
      Returns:
      the examination
    • setExamination

      public void setExamination(Examination examination)
      Don't use this method to add a quotation into an examination. This method does not make reverse link.
      Use Examination.addQuotation(Student, Quotation) instead of this to make bidirectional link.
      Parameters:
      examination -
    • getValue

      public double getValue()
      Returns:
      the value
    • setValue

      public void setValue(double value)
      Parameters:
      value - the value to set
    • getComment

      public String getComment()
      Returns:
      the comment
    • setComment

      public void setComment(String comment)
      Parameters:
      comment - the comment to set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object