solar.service.pack
Class PackFilter

java.lang.Object
  |
  +--solar.service.pack.PackFilter
All Implemented Interfaces:
Identifiable
Direct Known Subclasses:
EVEN, GE, ODD, RANDOM

public abstract class PackFilter
extends java.lang.Object
implements Identifiable

PACK filters are the elements of flow-control policies.

Version:
$Id: PackFilter.java,v 1.9 2003/10/13 14:53:34 glchen Exp $
Author:
Guanling Chen

Field Summary
private  Id _fid
           
 
Constructor Summary
PackFilter()
           
PackFilter(Id fid)
           
 
Method Summary
abstract  void endSession(PackSession session)
          End a packing session.
abstract  boolean filter(Event evt)
          Drop the event on floor if the filter returns false.
 Id getId()
          Return the ID of this object.
abstract  void init(serp.util.Options opts)
          Init the filter with specified arguments.
 void setId(Id id)
          Set the ID of this object.
abstract  void startSession(PackSession session)
          Start a packing session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_fid

private Id _fid
Constructor Detail

PackFilter

public PackFilter()

PackFilter

public PackFilter(Id fid)
Method Detail

setId

public final void setId(Id id)
Description copied from interface: Identifiable
Set the ID of this object.

Specified by:
setId in interface Identifiable

getId

public final Id getId()
Description copied from interface: Identifiable
Return the ID of this object.

Specified by:
getId in interface Identifiable

init

public abstract void init(serp.util.Options opts)
                   throws java.lang.Exception
Init the filter with specified arguments.

java.lang.Exception

startSession

public abstract void startSession(PackSession session)
Start a packing session.


filter

public abstract boolean filter(Event evt)
                        throws java.lang.Exception
Drop the event on floor if the filter returns false.

java.lang.Exception

endSession

public abstract void endSession(PackSession session)
End a packing session.