nl.tudelft.goal.EIS2Java.translation
Enum Filter.Type

Package class diagram package Filter.Type
java.lang.Object
  extended by java.lang.Enum<Filter.Type>
      extended by nl.tudelft.goal.EIS2Java.translation.Filter.Type
All Implemented Interfaces:
Serializable, Comparable<Filter.Type>
Enclosing class:
Filter

public static enum Filter.Type
extends Enum<Filter.Type>

The filter type determines which percepts are passed through each cycle

Author:
W.Pasman 27sep2011

Enum Constant Summary
ALWAYS
          Return all percepts always
ON_CHANGE
          Return only the percepts if something in the percepts changed.
ON_CHANGE_NEG
          Return only the newly appeared percepts, plus not(p) for all percepts that disappeared.
ONCE
          Return all percepts only the first time.
 
Method Summary
static Filter.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Filter.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALWAYS

public static final Filter.Type ALWAYS
Return all percepts always


ONCE

public static final Filter.Type ONCE
Return all percepts only the first time.


ON_CHANGE

public static final Filter.Type ON_CHANGE
Return only the percepts if something in the percepts changed. Return empty list if nothing changed.


ON_CHANGE_NEG

public static final Filter.Type ON_CHANGE_NEG
Return only the newly appeared percepts, plus not(p) for all percepts that disappeared.

Method Detail

values

public static Filter.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Filter.Type c : Filter.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Filter.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.