Package adams.event
Class TokenEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.event.TokenEvent
-
- All Implemented Interfaces:
Serializable
public class TokenEvent extends EventObject
Event that gets sent by aTokenEventHandler
actor when a token arrived.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Token
m_Token
the token.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description TokenEvent(TokenEventHandler source, Token token)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenEventHandler
getHandler()
Returns theTokenEventHandler
actor that triggered the event.Token
getToken()
Returns the token.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
m_Token
protected Token m_Token
the token.
-
-
Constructor Detail
-
TokenEvent
public TokenEvent(TokenEventHandler source, Token token)
Initializes the event.- Parameters:
source
- the actor that triggered the eventtoken
- the token
-
-
Method Detail
-
getHandler
public TokenEventHandler getHandler()
Returns theTokenEventHandler
actor that triggered the event.- Returns:
- the actor
-
getToken
public Token getToken()
Returns the token.- Returns:
- the token
-
-