nl.tudelft.simulation.content
Class Handler

java.lang.Object
  extended bynl.tudelft.simulation.content.Handler
All Implemented Interfaces:
HandlerInterface, java.io.Serializable

public abstract class Handler
extends java.lang.Object
implements HandlerInterface

An abstract definition of a handler, providing a default stream and a constructor method.

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.3 $$ $$Date: 2005/04/08 11:29:12 $$
Author:
Peter Jacobs , Stijn-Pieter van Houten , Alexander Verbraeck
See Also:
Serialized Form

Field Summary
protected  ActorInterface owner
          the owner of this handler
protected  nl.tudelft.simulation.jstats.streams.StreamInterface stream
          the default stream to use for the time delays
 
Constructor Summary
Handler(ActorInterface owner)
          constructs a new Handler
 
Method Summary
 nl.tudelft.simulation.jstats.streams.StreamInterface getStream()
           
abstract  boolean handleContent(java.io.Serializable content)
          Method handleContent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

protected ActorInterface owner
the owner of this handler


stream

protected nl.tudelft.simulation.jstats.streams.StreamInterface stream
the default stream to use for the time delays

Constructor Detail

Handler

public Handler(ActorInterface owner)
constructs a new Handler

Parameters:
owner - the owner of this handler
Method Detail

getStream

public nl.tudelft.simulation.jstats.streams.StreamInterface getStream()
Returns:
Returns the default stream.

handleContent

public abstract boolean handleContent(java.io.Serializable content)
Description copied from interface: HandlerInterface
Method handleContent.

Specified by:
handleContent in interface HandlerInterface
Parameters:
content - the content to be handled, can be of any type
Returns:
a boolean acknowledgement; true or false
See Also:
HandlerInterface.handleContent(java.io.Serializable)


Copyright © 2004-2005 Delft University of Technology, the Netherlands. All Rights Reserved.