public static enum IWatcher.EventType extends java.lang.Enum<IWatcher.EventType>
When a watcher is registered into an event source, the source can check
what kind of event are expected by calling the IWatcher.getPatternType()
method. The interpretation of the watch pattern (returned by
IWatcher.getWatchPattern()
) depends of the type of event, as follow:
FACT_CHECKING
NEW_INSTANCE
> registerEvent > NEW_INSTANCE > ON_TRUE > b > [?a desires ?b, ?a rdf:type Human]Add some facts:
> add > [ramses rdf:type Human, pyramidInauguration rdf:type StaticSituation, ramses desires pyramidInauguration]This would fire the event and return:
> event > [pyramidInauguration]
NEW_CLASS_INSTANCE
NEW_INSTANCE
for class instances.Enum Constant and Description |
---|
FACT_CHECKING |
NEW_CLASS_INSTANCE |
NEW_INSTANCE |
Modifier and Type | Method and Description |
---|---|
static IWatcher.EventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IWatcher.EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IWatcher.EventType FACT_CHECKING
public static final IWatcher.EventType NEW_CLASS_INSTANCE
public static final IWatcher.EventType NEW_INSTANCE
public static IWatcher.EventType[] values()
for (IWatcher.EventType c : IWatcher.EventType.values()) System.out.println(c);
public static IWatcher.EventType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullORO is a part of the OpenRobots framework.
openrobots@laas.fr
LAAS-CNRS 2009-2011