|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unibe.iam.scg.archie.model.Cohort
public class Cohort
A Cohort represents a certain age-group (e.g. all patients with ages from 10 to 20). lowerBound must always be smaller than upperBound
$Id$
Field Summary | |
---|---|
static java.lang.String |
TITLE_DELIMITER
Delimiter used for the title of a cohort. |
Constructor Summary | |
---|---|
Cohort(int lowerBound,
int upperBound,
java.lang.Object value)
Public constructor. |
Method Summary | |
---|---|
int |
compareTo(Cohort otherCohort)
A Cohort is smaller than another if its lower bound is smaller. |
boolean |
equals(java.lang.Object object)
Checks if another cohort is equal to this one. |
int |
getCohortSize()
Returns the cohort size. |
int |
getLowerBound()
Returns a cohort's lower bound. |
int |
getUpperBound()
Returns a cohort's upper bound. |
java.lang.Object |
getValue()
Returns a cohort's value. |
int |
hashCode()
Returns the hash code for this cohort. |
void |
setLowerBound(int lowerBound)
Sets a cohort's lower bound. |
void |
setUpperBound(int upperBound)
Sets a cohort's upper bound. |
void |
setValue(java.lang.Object value)
Sets a cohort's value. |
java.lang.String |
toString()
To string representation of a cohort. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TITLE_DELIMITER
Constructor Detail |
---|
public Cohort(int lowerBound, int upperBound, java.lang.Object value)
lowerBound
- Lower bound of a cohort.upperBound
- Upper bound of a cohort.value
- Value of the age group (cohort).Method Detail |
---|
public int getCohortSize()
public void setLowerBound(int lowerBound)
lowerBound
- the lowerBound to setpublic int getLowerBound()
public void setUpperBound(int upperBound)
upperBound
- Upperbound value.public int getUpperBound()
public void setValue(java.lang.Object value)
value
- The cohort's value.public java.lang.Object getValue()
public java.lang.String toString()
TITLE_DELIMITER
of the Cohort
class.
toString
in class java.lang.Object
public int compareTo(Cohort otherCohort)
compareTo
in interface java.lang.Comparable<Cohort>
otherCohort
-
Comparable.compareTo(java.lang.Object)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- An object.
public int hashCode()
hashCode
in class java.lang.Object
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |