Knowledge API Legacy5 Adapter 6.2.0.Final

org.drools.impl.adapters
Class ActivationAdapter

java.lang.Object
  extended by org.drools.impl.adapters.ActivationAdapter
All Implemented Interfaces:
Activation

public class ActivationAdapter
extends Object
implements Activation


Constructor Summary
ActivationAdapter(org.kie.api.runtime.rule.Match delegate)
           
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getDeclarationIDs()
          Returns the list of declaration identifiers that are bound to the tuple that created this activation.
 Object getDeclarationValue(String declarationId)
          Returns the bound declaration value for the given declaration identifier.
 List<? extends FactHandle> getFactHandles()
           
 List<Object> getObjects()
          Returns the list of objects that make the tuple that created this activation.
 PropagationContext getPropagationContext()
           
 Rule getRule()
           
 int hashCode()
           
 boolean isActive()
          An Activation is considered active if it is on the agenda and has not yet fired.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationAdapter

public ActivationAdapter(org.kie.api.runtime.rule.Match delegate)
Method Detail

getRule

public Rule getRule()
Specified by:
getRule in interface Activation
Returns:
The Rule that was activated.

getPropagationContext

public PropagationContext getPropagationContext()
Specified by:
getPropagationContext in interface Activation
Returns:
The PropagationContext that created this Activation

getFactHandles

public List<? extends FactHandle> getFactHandles()
Specified by:
getFactHandles in interface Activation
Returns:
The matched FactHandles for this activation

getObjects

public List<Object> getObjects()
Description copied from interface: Activation
Returns the list of objects that make the tuple that created this activation. The objects are in the proper tuple order.

Specified by:
getObjects in interface Activation
Returns:

getDeclarationIDs

public List<String> getDeclarationIDs()
Description copied from interface: Activation
Returns the list of declaration identifiers that are bound to the tuple that created this activation.

Specified by:
getDeclarationIDs in interface Activation
Returns:

getDeclarationValue

public Object getDeclarationValue(String declarationId)
Description copied from interface: Activation
Returns the bound declaration value for the given declaration identifier.

Specified by:
getDeclarationValue in interface Activation
Returns:

isActive

public boolean isActive()
Description copied from interface: Activation
An Activation is considered active if it is on the agenda and has not yet fired. Once an Activation has fired it is remove from the Agenda an considered dormant. However remember that the Activation may still be considered "true", i.e. a full match.

Specified by:
isActive in interface Activation
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Knowledge API Legacy5 Adapter 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.