|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface to a tournament of Bridge. There will be pair
tournaments and team tournaments be possible. A tournament must
manage a list of participants. A tournament will have a certain
movement that decides when which users will play which game. These
games then will be created by the tournament and the users will be
notified by their listeners that there is a game for them to
play.
Tournaments have a certain time interval for registering. After
that period must be a definite date when the tournament starts and
thereafter a (not definite) date when the tournament is
finished.
Every user can create a tournament. He will then be the owner of
the tournament who is allowed to set the options for it and can
invite and kick users.
A tournament should provide a chat channel where all participants
of a tournament can communicate together.
ChangeLog:
$Log: Tournament.java,v $ Revision 1.4 2001/08/02 10:44:30 jiriki Worked on Tournament Revision 1.3 2001/08/02 09:33:53 jiriki Worked on tournament Revision 1.2 2001/07/19 11:42:12 jiriki - Fixed Bug in TrickPane. - Started implementation of tournament. Revision 1.1.1.1 2001/04/29 18:05:18 jiriki Imported sources from zola. Revision 1.4 2001/04/20 15:10:14 login updated docs Revision 1.3 2001/04/10 16:32:17 login Commented the interface de.kosi.model.tournament.Tournament Revision 1.2 2001/04/05 14:11:52 login Worked on Tournament Revision 1.1 2001/03/05 20:55:22 login - Game (und zugehoerige Klassen) soweit fertig - package de.kosi.model.tournament angelegt - Pair angelegt - Round angelegt - Movement-Interface angelegt - KosiMovement fertig!!! :-) - KosiMovementTest um das KosiMovement zu testen (kann mit KOSI/kosimovementtestaufgerufen werden) - Tournament und TournamentImpl in das package de.kosi.model.tournament verschoben - buildfile fuer die neuen klassen angepasst Revision 1.3 2001/02/11 18:34:51 login updated documentation
Field Summary | |
static int |
APPLICATION
This constant refers to the application phase of a tournament. |
static int |
EXECUTION
This constant refers to the execution phase of a tournament. |
static int |
FINISHED
This constant refers to the finished state of the tournament. |
static int |
PREPARATION
This constant refers to the preparation phase of a tournament. |
Method Summary | |
void |
addTournamentListener(TournamentListener listener)
Add a tournament listener. |
java.util.Calendar |
getApplicationDeadline()
Returns the deadline of the application phase. |
ChatChannel |
getChatChannel()
Returns the chat channel of this tournament. |
TournamentConfiguration |
getConfiguration()
Get the configuration for this tournament. |
long |
getMatchTimeout()
Returns the timeout for matches. |
java.lang.String |
getOwnerName()
Returns the tournament's owner's login name. |
java.util.Calendar |
getStartDate()
Returns the start date of the tournament. |
int |
getStatus()
Returns the tournament's state (APPLICATION, PREPARATION, EXECUTION or FINISHED). |
boolean |
isOwner()
Return wether the User calling the method is the owner of this tournament. |
void |
removeTournamentListener(TournamentListener listener)
Remove a tournament listener. |
void |
setApplicationDeadline(java.util.Calendar calendar)
Sets the application deadline of the tournament. |
void |
setMatchTimeout(long timeout)
Set the timeout for matches. |
void |
setStartDate(java.util.Calendar calendar)
Sets the start date of the tournament. |
Field Detail |
public static final int APPLICATION
public static final int PREPARATION
public static final int EXECUTION
public static final int FINISHED
Method Detail |
public ChatChannel getChatChannel() throws java.rmi.RemoteException
java.rmi.RemoteException
- If the remote call of this method
fails.public java.util.Calendar getStartDate() throws java.rmi.RemoteException
java.rmi.RemoteException
- If the remote call fails.public void setStartDate(java.util.Calendar calendar) throws java.rmi.RemoteException, KosiAccessException, InvalidSessionException
calendar
- The calendar of the respective start date.java.rmi.RemoteException
- If the remote call fails.KosiAccessException
- If the method was called by an
unauthorized user. Only the server and the tournament's owner may
set the start date.InvalidSessionException
- If this method was called from
an invalid session context.public java.util.Calendar getApplicationDeadline() throws java.rmi.RemoteException
java.rmi.RemoteException
- If the remote call fails.public void setApplicationDeadline(java.util.Calendar calendar) throws java.rmi.RemoteException, KosiAccessException, InvalidSessionException
calendar
- The calendar of the respective application
deadline.java.rmi.RemoteException
- If the remote call fails.KosiAccessException
- If the method was called by an
unauthorized user. Only the server and the tournament's owner may
set the start date.InvalidSessionException
- If this method was called from
an invalid session context.public long getMatchTimeout() throws java.rmi.RemoteException
java.rmi.RemoteException
- If the remote call fails.public void setMatchTimeout(long timeout) throws java.rmi.RemoteException, KosiAccessException, InvalidSessionException
timeout
- Timeout in milliseconds.KosiAccessException
- If not called by the owner of this tournament.InvalidSessionException
- If not called from a valid session context.java.rmi.RemoteException
- If the remote call fails.public java.lang.String getOwnerName() throws java.rmi.RemoteException
java.rmi.RemoteException
- If the remote call fails.public boolean isOwner() throws java.rmi.RemoteException, InvalidSessionException
java.rmi.RemoteException
- If the remote call fails.InvalidSessionException
- If not called from a valid session context.public int getStatus() throws java.rmi.RemoteException
java.rmi.RemoteException
- If the remote call fails.public void addTournamentListener(TournamentListener listener) throws java.rmi.RemoteException, InvalidSessionException
listener
- The listener to add.java.rmi.RemoteException
- If the remote call fails.InvalidSessionException
- If this method was called from
an invalid session context.public void removeTournamentListener(TournamentListener listener) throws java.rmi.RemoteException, InvalidSessionException
listener
- The listener to remove.java.rmi.RemoteException
- If the remote call fails.InvalidSessionException
- If this method was called from
an invalid session context.public TournamentConfiguration getConfiguration() throws java.rmi.RemoteException, InvalidSessionException, KosiAccessException
java.rmi.RemoteException
- If the remote call fails.InvalidSessionException
- If this method was called fromKosiAccessException
- If not called by the owner of this tournament.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |