public class Position
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Position(Section s,
boolean isTA,
int o)
Constructor for Position
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildId(java.lang.String sectionId,
int isTA,
int place)
Builds the total id representation based on the sectionId, position type, and place
|
java.lang.String |
getDescription()
returns the description for this position
|
java.lang.String |
getId()
returns the id of this position
|
int |
getOrder()
returns the order of this position
|
java.lang.String |
getPositionName()
Returns the name of the position
|
Restriction |
getRestriction()
returns the forbidden assistants and required assistants for this section if applicable
|
java.lang.Object |
getRestrictionValue()
returns the actual object of the forbidden and required assistants
|
Section |
getSection()
returns the section
|
java.lang.String |
getSectionId()
Returns the section id
|
java.lang.String |
getSectionName()
Returns the namem of the section
|
int |
getType()
Returns 1 if this is a TA position, 0 if this is an LA position
|
boolean |
isTA()
returns true if this is a TA position, false if it is an LA position
|
void |
setOrder(int i)
sets the order of this position
|
void |
setSection(Section section)
Sets the section
|
void |
setTA(boolean isTA)
Sets the postion to either be a TA or LA position
|
java.lang.String |
toString()
prints this position
|
public Position(Section s, boolean isTA, int o)
s
- isTA
- o
- public void setTA(boolean isTA)
isTA
- public boolean isTA()
public void setSection(Section section)
section
- public Section getSection()
public java.lang.String getPositionName()
public java.lang.String getSectionName()
public java.lang.String getSectionId()
public int getType()
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public int getOrder()
public void setOrder(int i)
i
- public java.lang.String getId()
public static java.lang.String buildId(java.lang.String sectionId, int isTA, int place)
sectionId
- isTA
- place
- public Restriction getRestriction()
public java.lang.Object getRestrictionValue()