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

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

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

origin: net.sourceforge.jadex/jadex-rules

  /**
   *  Initialize the pattern matcher.
   *  Called before the agenda is accessed
   *  to perform any initialization, if necessary.
   */
  public void init()
  {
    // Initialize initial fact node, if any.
    if(node.getInitialFactNode()!=null)
      node.getInitialFactNode().init(state, retemem, agenda);
    
    // Add initial objects.
    for(Iterator objects=state.getDeepObjects(); objects.hasNext(); )
    {
      Object    object    = objects.next();
      objectAdded(object, state.getType(object), false);	// Hack!!! Should check if root?
    }

    state.addStateListener(this, true);
//        state.addStateListener(this, false);
  }
 
origin: org.activecomponents.jadex/jadex-rules

  /**
   *  Initialize the pattern matcher.
   *  Called before the agenda is accessed
   *  to perform any initialization, if necessary.
   */
  public void init()
  {
    // Initialize initial fact node, if any.
    if(node.getInitialFactNode()!=null)
      node.getInitialFactNode().init(state, retemem, agenda);
    
    // Add initial objects.
    for(Iterator objects=state.getDeepObjects(); objects.hasNext(); )
    {
      Object    object    = objects.next();
      objectAdded(object, state.getType(object), false);	// Hack!!! Should check if root?
    }

    state.addStateListener(this, true);
//        state.addStateListener(this, false);
  }
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Add an initial fact node.
 *  @param context    The build context.
 */
protected void addInitialFactNode(BuildContext context)
{
  // Todo: multiple initial fact nodes without sharing ?
  InitialFactNode node    = context.getRootNode().getInitialFactNode();
  if(node==null)
  {
    node    = new InitialFactNode(context.getRootNode().getNextNodeId());
    connectRight(context.getRootNode(), node, context);
  }
  // Update the context.
  context.setLastBetaNode(node);
  context.setTupleCount(1);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Add an initial fact node.
 *  @param context    The build context.
 */
protected void addInitialFactNode(BuildContext context)
{
  // Todo: multiple initial fact nodes without sharing ?
  InitialFactNode node    = context.getRootNode().getInitialFactNode();
  if(node==null)
  {
    node    = new InitialFactNode(context.getRootNode().getNextNodeId());
    connectRight(context.getRootNode(), node, context);
  }
  // Update the context.
  context.setLastBetaNode(node);
  context.setTupleCount(1);
}
 
jadex.rules.rulesystem.rete.nodesReteNodegetInitialFactNode

Javadoc

Get the initial fact node (if any).

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.
  • checkConsistency
    Check consistency of Rete network/memory. For debugging. Only performs some simple checks and does n
  • clone
  • getIndirectNodes
    Get the set of indirectly affected nodes for an attribute type.
  • 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

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Reference (javax.naming)
  • JTable (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm 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