Drools :: Core 6.2.0.CR4

org.drools.core.beliefsystem.defeasible
Class DefeasibleMode<M extends DefeasibleMode<M>>

java.lang.Object
  extended by org.drools.core.util.AbstractBaseLinkedListNode<M>
      extended by org.drools.core.beliefsystem.jtms.JTMSMode<M>
          extended by org.drools.core.beliefsystem.defeasible.DefeasibleMode<M>
All Implemented Interfaces:
ModedAssertion<M>, Entry<M>, LinkedListNode<M>, org.kie.internal.runtime.beliefs.Mode

public class DefeasibleMode<M extends DefeasibleMode<M>>
extends JTMSMode<M>


Field Summary
static String DEFEATER
           
static String DEFEATS
           
 
Constructor Summary
DefeasibleMode(String value, BeliefSystem beliefSystem)
           
 
Method Summary
 void addDefeated(M defeated)
           
 void clearDefeated()
           
 Object getBeliefSystem()
           
 DefeasibleMode<M> getDefeatedBy()
           
 String[] getDefeats()
           
 M getRootDefeated()
           
 DefeasibilityStatus getStatus()
           
 M getTailDefeated()
           
 void initDefeats()
           
 boolean isDefeater()
           
 void removeDefeated(DefeasibleMode<M> defeated)
           
 DefeasibleMode<M> removeFirst()
           
 DefeasibleMode<M> removeLast()
           
 void setDefeatedBy(DefeasibleMode<M> defeatedBy)
           
 void setDefeater(boolean defeater)
           
 void setStatus(DefeasibilityStatus status)
           
 
Methods inherited from class org.drools.core.beliefsystem.jtms.JTMSMode
getLogicalDependency, getValue, setLogicalDependency
 
Methods inherited from class org.drools.core.util.AbstractBaseLinkedListNode
getNext, getPrevious, nullPrevNext, setNext, setPrevious
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.core.util.LinkedListNode
getPrevious, nullPrevNext, setPrevious
 
Methods inherited from interface org.drools.core.util.Entry
getNext, setNext
 

Field Detail

DEFEATS

public static final String DEFEATS

DEFEATER

public static final String DEFEATER
Constructor Detail

DefeasibleMode

public DefeasibleMode(String value,
                      BeliefSystem beliefSystem)
Method Detail

getBeliefSystem

public Object getBeliefSystem()
Specified by:
getBeliefSystem in interface org.kie.internal.runtime.beliefs.Mode
Overrides:
getBeliefSystem in class JTMSMode<M extends DefeasibleMode<M>>

initDefeats

public void initDefeats()

addDefeated

public void addDefeated(M defeated)

removeDefeated

public void removeDefeated(DefeasibleMode<M> defeated)

removeFirst

public DefeasibleMode<M> removeFirst()

removeLast

public DefeasibleMode<M> removeLast()

getRootDefeated

public M getRootDefeated()

getTailDefeated

public M getTailDefeated()

getDefeats

public String[] getDefeats()

getDefeatedBy

public DefeasibleMode<M> getDefeatedBy()

setDefeatedBy

public void setDefeatedBy(DefeasibleMode<M> defeatedBy)

getStatus

public DefeasibilityStatus getStatus()

setStatus

public void setStatus(DefeasibilityStatus status)

isDefeater

public boolean isDefeater()

setDefeater

public void setDefeater(boolean defeater)

clearDefeated

public void clearDefeated()

Drools :: Core 6.2.0.CR4

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