nl.tudelft.simulation.actor.messagehandlers
Interface MessageHandlerInterface
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- HandleAllMessages, HandleMessagesTimeDelay
- public interface MessageHandlerInterface
- extends java.io.Serializable
A MessageHandler that implements the MessageHandlerInterface should be able
to take a MessageQueue from a device, and take one or more messages out of
the queue, and prepare the messages fro further handling.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
Delft, the Netherlands. All rights reserved.
See for project information
www.simulation.tudelft.nl .
The source code and binary code of this software is proprietary information
of Delft University of Technology.
- Version:
- $$Revision: 1.2 $$ $$Date: 2005/04/08 10:56:35 $$
- Author:
- Peter
Jacobs , Stijn-Pieter van Houten
, Alexander
Verbraeck
handleMessageQueue
public void handleMessageQueue(MessageQueueInterface messageQueue)
- Looks at a message queue, takes out the messages one by one, unpacks the
message, and handles the content. This method can be extended to handle
the messages differently, e.g. by just working on one message and then
stopping, or taking time to handle the message (and blocking if needed)
- Parameters:
messageQueue - the queue to look at
Copyright © 2004-2005 Delft University of Technology, the Netherlands. All Rights Reserved.