Tabnine Logo
ReteNode.checkConsistency
Code IndexAdd Tabnine to your IDE (free)

How to use
checkConsistency
method
in
jadex.rules.rulesystem.rete.nodes.ReteNode

Best Java code snippets using jadex.rules.rulesystem.rete.nodes.ReteNode.checkConsistency (Showing top 6 results out of 315)

origin: net.sourceforge.jadex/jadex-rules

  /**
   *  Tell the condition system about a
   *  new object in the state.
   *  @param object The new object.
   */
  public void addObject(Object id, OAVObjectType type, IOAVState state, ReteMemory mem, AbstractAgenda agenda)
  {
//        if(type.getName().equals("goal"))
//            System.out.println("Value added: "+id+" "+type);
//        System.out.println("Value added: "+id+" "+type);
    
    state.getProfiler().start(IProfiler.TYPE_NODE, this);
    state.getProfiler().start(IProfiler.TYPE_NODEEVENT, IProfiler.NODEEVENT_OBJECTADDED);
    
    Set    tns    = getTypeNodes(type);
    
    if(tns!=null)
    {
      for(Iterator it=tns.iterator(); it.hasNext(); )
        ((AlphaNode)it.next()).addObject(id, state, mem, agenda);
      
      assert !check || checkConsistency(mem);
    }
//        else
//            System.out.println("No typenode(s) available for: "+type);

    state.getProfiler().stop(IProfiler.TYPE_NODEEVENT, IProfiler.NODEEVENT_OBJECTADDED);
    state.getProfiler().stop(IProfiler.TYPE_NODE, this);
  }
     
origin: org.activecomponents.jadex/jadex-rules

  /**
   *  Tell the condition system about a
   *  new object in the state.
   *  @param object The new object.
   */
  public void addObject(Object id, OAVObjectType type, IOAVState state, ReteMemory mem, AbstractAgenda agenda)
  {
//        if(type.getName().equals("goal"))
//            System.out.println("Value added: "+id+" "+type);
//        System.out.println("Value added: "+id+" "+type);
    
    state.getProfiler().start(IProfiler.TYPE_NODE, this);
    state.getProfiler().start(IProfiler.TYPE_NODEEVENT, IProfiler.NODEEVENT_OBJECTADDED);
    
    Set    tns    = getTypeNodes(type);
    
    if(tns!=null)
    {
      for(Iterator it=tns.iterator(); it.hasNext(); )
        ((AlphaNode)it.next()).addObject(id, state, mem, agenda);
      
      assert !check || checkConsistency(mem);
    }
//        else
//            System.out.println("No typenode(s) available for: "+type);

    state.getProfiler().stop(IProfiler.TYPE_NODEEVENT, IProfiler.NODEEVENT_OBJECTADDED);
    state.getProfiler().stop(IProfiler.TYPE_NODE, this);
  }
     
origin: net.sourceforge.jadex/jadex-rules

  ((AlphaNode)it.next()).removeObject(id, state, mem, agenda);
assert !check || checkConsistency(mem);
origin: org.activecomponents.jadex/jadex-rules

  ((AlphaNode)it.next()).removeObject(id, state, mem, agenda);
assert !check || checkConsistency(mem);
origin: net.sourceforge.jadex/jadex-rules

assert !check || checkConsistency(mem);
origin: org.activecomponents.jadex/jadex-rules

assert !check || checkConsistency(mem);
jadex.rules.rulesystem.rete.nodesReteNodecheckConsistency

Javadoc

Check consistency of Rete network/memory. For debugging. Only performs some simple checks and does not assure complete consistency.

Popular methods of ReteNode

  • getTerminalNode
    Set the terminal node for a rule.
  • <init>
    Create a new rete system.
  • addObject
    Tell the condition system about a new object in the state.
  • addRule
    Add a rule to the network.
  • clone
  • getIndirectNodes
    Get the set of indirectly affected nodes for an attribute type.
  • getInitialFactNode
    Get the initial fact node (if any).
  • getNextNodeId
    Get the next nodecounter.
  • getRelevantAttributes
    Get the set of relevant attribute types.
  • getTypeNode
    Get the node for a type.
  • getTypeNodes
    Get the set of matching type nodes for a (sub)type.
  • modifyObject
    Tell the condition system about a modified object in the state.
  • getTypeNodes,
  • modifyObject,
  • putTerminalNode,
  • removeObject,
  • removeRule,
  • setInited,
  • getBuilder

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now