Jadex 0.96-beta1

jadex.runtime
Class GoalEventFilter

java.lang.Object
  extended by jadex.runtime.ParameterElementFilter
      extended by jadex.runtime.GoalEventFilter
All Implemented Interfaces:
IFilter, Serializable

public class GoalEventFilter
extends ParameterElementFilter

A goal filter to match against goals, which are contained in goal events, i.e. the contained values and filters of this filter are not applied to the event, but to the goal. The implicit event filter cannot be finetuned.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jadex.runtime.IFilter
ALWAYS, NEVER
 
Constructor Summary
GoalEventFilter(String type)
          Create a goal event filter to match against process goal events.
GoalEventFilter(String type, boolean info)
          Create a goal event filter to match against goal events.
GoalEventFilter(String type, String name, boolean info)
          Create a goal event filter to match against goal events.
 
Method Summary
 boolean filter(Object object)
          Match an object against the filter.
 
Methods inherited from class jadex.runtime.ParameterElementFilter
addValue, setMatchExpression, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GoalEventFilter

public GoalEventFilter(String type)
Create a goal event filter to match against process goal events.

Parameters:
type - The goal type.

GoalEventFilter

public GoalEventFilter(String type,
                       boolean info)
Create a goal event filter to match against goal events.

Parameters:
type - The goal type.
info - Match info (or process) events.

GoalEventFilter

public GoalEventFilter(String type,
                       String name,
                       boolean info)
Create a goal event filter to match against goal events.

Parameters:
type - The goal type.
name - The goal (instance) name.
info - Match info (or process) events.
Method Detail

filter

public boolean filter(Object object)
               throws Exception
Match an object against the filter.

Specified by:
filter in interface IFilter
Overrides:
filter in class ParameterElementFilter
Parameters:
object - The object.
Returns:
True, if the filter matches.
Throws:
Exception

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.