-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from solvena/16-add-observer
Add observer
- Loading branch information
Showing
4 changed files
with
117 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package Model; | ||
|
|
||
| /** | ||
| * Observer interface for the Exchange subject. | ||
| * Implement this interface to receive notifications whenever the exchange | ||
| * state changes (week advances, a trade is committed). | ||
| */ | ||
| public interface ExchangeObserver { | ||
|
|
||
| /** | ||
| * Called by the Exchange after its state has changed. | ||
| * | ||
| * @param exchange the Exchange that triggered the notification | ||
| */ | ||
| void onExchangeUpdated(Exchange exchange); | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters