org.drools.examples.benchmarks.waltz
Class WaltzWMEL

java.lang.Object
  extended byorg.drools.event.DefaultWorkingMemoryEventListener
      extended byorg.drools.examples.benchmarks.waltz.WaltzWMEL
All Implemented Interfaces:
java.util.EventListener, WorkingMemoryEventListener

public class WaltzWMEL
extends DefaultWorkingMemoryEventListener

A WorkingMemoryEventListener used to simulate "not" functionality not currently supported by Drools.

 

Constructor Summary
WaltzWMEL()
           
 
Method Summary
static boolean edgeExists(int p1, int p2a, int p2b)
           
static boolean greaterJunctionExists(int basePoint)
           
static boolean joinedEdgeExists()
           
static boolean lineExists()
           
 void objectAsserted(ObjectAssertedEvent event)
           
 void objectModified(ObjectModifiedEvent event)
           
 void objectRetracted(ObjectRetractedEvent event)
           
static boolean plottedEdgeExists()
           
static boolean smallerJunctionExists(int basePoint)
           
 
Methods inherited from class org.drools.event.DefaultWorkingMemoryEventListener
activationCancelled, activationCreated, activationFired, conditionTested
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaltzWMEL

public WaltzWMEL()
Method Detail

objectAsserted

public void objectAsserted(ObjectAssertedEvent event)
Specified by:
objectAsserted in interface WorkingMemoryEventListener
Overrides:
objectAsserted in class DefaultWorkingMemoryEventListener

objectModified

public void objectModified(ObjectModifiedEvent event)
Specified by:
objectModified in interface WorkingMemoryEventListener
Overrides:
objectModified in class DefaultWorkingMemoryEventListener

objectRetracted

public void objectRetracted(ObjectRetractedEvent event)
Specified by:
objectRetracted in interface WorkingMemoryEventListener
Overrides:
objectRetracted in class DefaultWorkingMemoryEventListener

lineExists

public static boolean lineExists()

edgeExists

public static boolean edgeExists(int p1,
                                 int p2a,
                                 int p2b)

joinedEdgeExists

public static boolean joinedEdgeExists()

plottedEdgeExists

public static boolean plottedEdgeExists()

greaterJunctionExists

public static boolean greaterJunctionExists(int basePoint)

smallerJunctionExists

public static boolean smallerJunctionExists(int basePoint)