Package | Description |
---|---|
models | |
specifications |
Modifier and Type | Class and Description |
---|---|
class |
Domino
|
class |
ObservableDomino
Wrapper for a
DominoSpecification that makes it Observable .This is a work-around Observable being an abstract class and not an interface
(a problem with the Java API design).It implements and extends the DominoSpecification behaviour with
a randomize method, which is added in order to allow the construction of a new random
DominoSpecification attribute without having to reconstruct the Observable object |
Modifier and Type | Interface and Description |
---|---|
interface |
DominoSpecification
A simple domino from a traditional set:
0:0 0:1 0:2 0:3 0:4 0:5 0:6
1:1 1:2 1:3 1:4 1:5 1:6
2:2 2:3 2:4 2:5 2:6
3:3 3:4 3:5 3:6
4:4 4:5 4:6
5:5 5:6
6:6
Note: we consider domino x:y to be equal to domino y:x,
and must override
DominoSpecification.equals(java.lang.Object) and DominoSpecification.hashCode() methods appropriatelyTested by JUnit_DominoSpecification |