|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITeam
Defines methods required by teams in the game framework. A team instance represents one team of agents. Examples include the teams White and Black in chess, or partners in bridge. Teams may also have associated tokens.
Field Summary | |
---|---|
static String |
NAME_PROPERTY
Name property name. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. |
void |
configure(Properties properties,
int index)
Configure this team. |
IAgentCollection |
getAgentCollection()
Return the agent collection. |
String |
getName()
Return this team's name. |
ITokenCollection |
getTokenCollection()
Return the token collection. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property. |
void |
reset()
Reset to the initial state. |
void |
setName(String name)
Set the name to the given value. |
Field Detail |
---|
static final String NAME_PROPERTY
Method Detail |
---|
IAgentCollection getAgentCollection()
void setName(String name)
name
- The new name.String getName()
ITokenCollection getTokenCollection()
void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
PropertyChangeListener
for a specific property. The
listener will be invoked only when a call on
firePropertyChange
names that specific property.
propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener
to be added.void configure(Properties properties, int index) throws InstantiationException, IllegalAccessException
properties
- Source of configuration information.index
- Index of this team's properties.
InstantiationException
IllegalAccessException
void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
PropertyChangeListener
for a specific property.
propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener
to be removed.void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |