All Packages Class Hierarchy This Package Previous Next Index
Class tc.message.handler.client.TimeSlicesMessageHandler
java.lang.Object
|
+----connection.MessageHandler
|
+----tc.message.handler.client.TimeSlicesMessageHandler
- public class TimeSlicesMessageHandler
- extends MessageHandler
TimeSlicesMessageHandler handles TimeSlicesMessages sent from the
server to the client.
- Version:
- 0.30, 1998/04/01
- Author:
- FRED development team, Antti Viljamaa, Jukka Viljamaa
- See Also:
- MessageHandler, TimeSlicesMessage
-
timeGrid
- The time grid to which the time slices from the message are added.
-
TimeSlicesMessageHandler(ConnectionManager, TimeGrid, MessageHandler)
- Initializes the TimeSlicesMessageHandler with the given arguments.
-
getTimeGrid()
- Gets the time grid to which the time slices from the message are added.
-
handle(Message)
- This method handles TimeSlicesMessage objects others are redirected onwards.
-
setTimeGrid(TimeGrid)
- Sets the time grid to which the time slices from the message are added.
timeGrid
private TimeGrid timeGrid
- The time grid to which the time slices from the message are added.
TimeSlicesMessageHandler
public TimeSlicesMessageHandler(ConnectionManager cm,
TimeGrid tg,
MessageHandler successor)
- Initializes the TimeSlicesMessageHandler with the given arguments.
- Parameters:
- cm - The connection manager who received the message and
passed it to this handler. Usually any response
messages to the peer are sent through this same
connection manager.
- tg - The time grid to which values from the message
are assigned.
- successor - The next message handler in the handler chain (if any).
handle
public boolean handle(Message m)
- This method handles TimeSlicesMessage objects others are redirected onwards.
- Parameters:
- m - The message to be handled. If it is an instance of
class TimeSlicesMessage, the time slices are added to
the time grid. Otherwise the message is redirected
to the next handler.
- Returns:
-
true
if the message was succesfully
handled.
- Overrides:
- handle in class MessageHandler
getTimeGrid
private TimeGrid getTimeGrid()
- Gets the time grid to which the time slices from the message are added.
setTimeGrid
private void setTimeGrid(TimeGrid tg)
- Sets the time grid to which the time slices from the message are added.
All Packages Class Hierarchy This Package Previous Next Index