Package com.plannaplan.entities
Class Assignment
java.lang.Object
com.plannaplan.entities.Assignment
@Entity
public class Assignment
extends java.lang.Object
Entity of Assignment grouping of state associated about group_id and
commision_id
-
Constructor Summary
Constructors Constructor Description Assignment()
Assignment(Groups group, Commision commision)
AssignmentAssignment(Groups group, Commision commision, boolean isPastAssignment)
Assignment -
Method Summary
Modifier and Type Method Description Commision
getCommision()
Getter of commisionGroups
getGroup()
getGroupjava.lang.Long
getId()
Id getterstatic Assignment
getNewFromAssignment(Assignment oldAssignment, Commision newCommision)
boolean
isAccepted()
If it returns trues it mesans u are assigned to group accepted by algorythmboolean
isPastAssignment()
isPastAssignment gettervoid
setCommision(Commision commision)
void
setPastAssignment(boolean isPastAssignment)
setter isPastAssignment
-
Constructor Details
-
Assignment
Assignment- Parameters:
group
- group we would like to assigncommision
- commision that assignment belongs toisPastAssignment
- is assignment past or no
-
Assignment
Assignment- Parameters:
group
- group we would like to assigncommision
- commision that assignment belongs to
-
Assignment
public Assignment()
-
-
Method Details
-
getNewFromAssignment
- Parameters:
oldAssignment
- old assignment that we want to move to new commisionnewCommision
- commsion to move assiongment
-
isAccepted
public boolean isAccepted()If it returns trues it mesans u are assigned to group accepted by algorythm- Returns:
- boolean isAccepted
-
getCommision
Getter of commision- Returns:
- Commision Commision of given assignments
-
setCommision
- Parameters:
commision
- commision to set
-
getId
public java.lang.Long getId()Id getter- Returns:
- id id of assignment
-
getGroup
getGroup- Returns:
- group
-
isPastAssignment
public boolean isPastAssignment()isPastAssignment getter- Returns:
- isPastAssignment
-
setPastAssignment
public void setPastAssignment(boolean isPastAssignment)setter isPastAssignment- Parameters:
isPastAssignment
- is assignment past or not
-