Contract | |
Name: | selectCreateHuman() |
Responsibilities: | Selects the createHuman option. |
Type: | System |
Cross References |
System Functions: R2.3 Use Cases: Create Human |
Notes: | |
Exceptions: | |
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Contract | |
Name: | selectSquareofLand(square) |
Responsibilities: | Selects a square of land. |
Type: | System |
Cross References |
System Functions: R2.3 Use Cases: Create Human, Perform Action |
Notes: | NA |
Exceptions: | NA |
Output: | NA |
Pre-conditions: | NA |
Post-conditions: |
|
Contract | |
Name: | createHuman( ) |
Responsibilities: | Create a normal human |
Type: | System |
Cross References |
System Functions: R1.4, R1.5, R2.1, R2.2, R2.3, R2.4, R3.1 Use Cases: Create Human |
Notes: | |
Exceptions: |
|
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Contract | |
Name: | selectHuman(human) |
Responsibilities: | Adds a human to a selection of humans |
Type: | System |
Cross References |
System Functions: R2.3, R2.4 Use Cases: Perform Normal Action, Create Construction |
Notes: | |
Exceptions: |
|
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Contract | |
Name: | selectAction(action) |
Responsibilities: | Selects an action to be performed by some selected humans |
Type: | System |
Cross References |
System Functions: R2.3 Use Cases: Perform Action, Create Construction |
Notes: | |
Exceptions: | |
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Already defined. (See Create Human.)
Contract | |
Name: | startAction() |
Responsibilities: | Starts the action to be performed by some selected humans |
Type: | System |
Cross References |
System Functions: R1.4, R1.5, R2.1, R2.2, R2.3, R2.4, R3.2 Use Cases: Perform Action |
Notes: | |
Exceptions: |
|
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Already defined.
Already defined. In this case the selected action is Constructing.
Contract | |
Name: | selectConstructionType(type) |
Responsibilities: | Selects a constructiontype to be build by some selected humans |
Type: | System |
Cross References |
System Functions: R2.3 Use Cases: Create Construction |
Notes: | |
Exceptions: | |
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Contract | |
Name: | selectConstructionShape(shape) |
Responsibilities: | Selects a shape for the construction. |
Type: | System |
Cross References |
System Functions: R2.3 Use Cases: Create Construction |
Notes: | |
Exceptions: | |
Output: | |
Pre-conditions: | A constructiontype must have been selected. |
Post-conditions: |
|
Already defined. (See Create Human.)
Contract | |
Name: | startConstructing() |
Responsibilities: | Starts the constructing action to be performed by some selected humans |
Type: | System |
Cross References |
System Functions: R1.4, R1.5, R2.1, R2.2, R2.3, R2.4, R3.2 Use Cases: Create Construction |
Notes: | |
Exceptions: |
|
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Contract | |
Name: | stopAction() |
Responsibilities: | Starts the action to be performed by some selected humans |
Type: | System |
Cross References |
System Functions: R1.4, R1.5, R2.1, R2.2, R2.3, R2.4, R3.2 Use Cases: Stop Action |
Notes: | |
Exceptions: | |
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Contract | |
Name: | resumeGame( ) |
Responsibilities: | Resume a paused game. |
Type: | System |
Cross References |
System Functions: R1.7, R2.1, R2.2, R2.3, R2.4 Use Cases: Resume Game |
Notes: | |
Exceptions: | |
Output: | |
Pre-conditions: |
|
Post-conditions: |
|
Contract | |
Name: | pauseGame( ) |
Responsibilities: | Pause the game, thereby pausing the evolution. |
Type: | System |
Cross References |
System Functions: R1.7 Use Cases: Pause Game |
Notes: | |
Exceptions: | |
Output: | |
Pre-conditions: |
|
Post-conditions: |
|
Contract | |
Name: | startUp() |
Responsibilities: | Initialize the system |
Type: | System |
Cross References |
System Functions: Use Cases: Start Up |
Notes: | |
Exceptions: | |
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Contract | |
Name: | createNewGame() |
Responsibilities: | Creates and start a new game. |
Type: | System |
Cross References |
System Functions: R1.1, R1.2, R2.1, R2.2, R2.3, R2.4 Use Cases: Create New Game |
Notes: | |
Exceptions: |
|
Output: | |
Pre-conditions: | |
Post-conditions: |
|
Remark: For this last Contract we tried to only mention the really essential post-conditions.