root / logic / src / main / scala / gr / grnet / aquarium / logic / credits / model / CreditUnit.scala @ 535a43e8
History | View | Annotate | Download (328 Bytes)
1 |
package gr.grnet.aquarium.logic.credits.model |
---|---|
2 |
|
3 |
/** |
4 |
* A credit unit is the entity to which credits can be assigned. |
5 |
* |
6 |
* Credit units can be composite or not. |
7 |
* |
8 |
* @author Christos KK Loverdos <loverdos@gmail.com>. |
9 |
*/ |
10 |
case class CreditUnit(name: String, subUnits: List[CreditUnit]) { |
11 |
def isComposite = subUnits.size == 0 |
12 |
} |