Package be.gaudry.model.edu.score
Class Quotation
java.lang.Object
be.gaudry.model.edu.score.Quotation
- Since:
- 1.0 Oct 12, 2008, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
-
Constructor Summary
ConstructorDescriptionDeprecated.Quotation(double value)
Deprecated.Quotation(double value, int maximum)
Deprecated.Quotation(int id, double value)
Deprecated.Quotation(int id, double value, int maximum)
Deprecated.Deprecated.Quotation(Examination examination)
Quotation(Examination examination, double value)
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
getValue()
int
hashCode()
void
setComment(String comment)
void
setExamination(Examination examination)
Don't use this method to add a quotation into an examination.void
setValue(double value)
toString()
-
Constructor Details
-
Quotation
Deprecated.Creates a new Quotation with all default values :- date : now
- value : 0
- maximum : 10
-
Quotation
Deprecated.Creates a new Quotation with some default values :- date : now
- maximum : 10
- Parameters:
value
- value to set
-
Quotation
Deprecated.Creates a new Quotation with some default values :- date : now
- maximum : 10
- Parameters:
id
-value
- value to set
-
Quotation
Deprecated.Creates a new Quotation with default Date (now)- Parameters:
value
- value to setmaximum
- maximum of the value
-
Quotation
Deprecated.Creates a new Quotation with default Date (now)- Parameters:
id
-value
- value to setmaximum
- maximum of the value
-
Quotation
Deprecated.Creates a new Quotation- Parameters:
date
- date of the quotationvalue
- value to setmaximum
- maximum of the value
-
Quotation
Deprecated.Creates a new Quotation- Parameters:
id
-date
- date of the quotationvalue
- value to setmaximum
- maximum of the value
-
Quotation
-
Quotation
- Throws:
OutOfBoundException
-
-
Method Details
-
getExamination
- Returns:
- the examination
-
setExamination
Don't use this method to add a quotation into an examination. This method does not make reverse link.
UseExamination.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
- Returns:
- the comment
-
setComment
- Parameters:
comment
- the comment to set
-
equals
-
hashCode
public int hashCode() -
toString
-