congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
jadex.rules.rulesystem.rete.nodes
Code IndexAdd Tabnine to your IDE (free)

How to use jadex.rules.rulesystem.rete.nodes

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

origin: net.sourceforge.jadex/jadex-rules

/**
 *  Add an value -> object pair to the object index.
 *  @param value The value.
 *  @param object The object.
 *  @param ci The constraint indexer.
 */
public void addObject(Object value, Object object, ConstraintIndexer ci)
{
  getIndexedMemory(ci).addObject(value, object);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Get the memory for this node.
 *  @return The memory.
 */
public Collection getNodeMemory(ReteMemory mem)
{
  return mem.hasNodeMemory(this)
    ? ((BetaMemory)mem.getNodeMemory(this)).getResultMemory()
    : null;
}
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Add an value -> object pair to the tuple index.
 *  @param value The value.
 *  @param tuple The tuple.
 *  @param ci The constraint indexer.
 */
public void addTuple(Object value, Tuple tuple, ConstraintIndexer ci)
{
  getIndexedMemory(ci).addTuple(value, tuple);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Get the indexed objects per tuple.
 *  @param tuple The indexed tuple.
 *  @param ci The constraint indexer. 
 */
public Set getObjects(Tuple tuple, ConstraintIndexer ci)
{
  IndexedConstraintMemory    mem    = getIndexedMemory(ci);
  Object    value    = mem.getTupleValue(tuple);
  return mem.getObjects(value);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Get the indexed tuples per object.
 *  @param object The indexed object.
 *  @param ci The constraint indexer. 
 */
public Set getTuples(Object object, ConstraintIndexer ci)
{
  IndexedConstraintMemory    mem    = getIndexedMemory(ci);
  Object    value    = mem.getObjectValue(object);
  return mem.getTuples(value);
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Get the memory for this node.
 *  @return The memory.
 */
public Collection getNodeMemory(ReteMemory mem)
{
  return mem.hasNodeMemory(this)
    ? ((CollectMemory)mem.getNodeMemory(this)).getResultMemory()
    : null;
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Remove an value -> object pair from the tuple index.
 *  @param object The object.
 *  @param ci The constraint indexer.
 */
public void removeTuple(Tuple tuple, ConstraintIndexer ci)
{
  getIndexedMemory(ci).removeTuple(tuple);
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Propagate a change of a tuple in the result memory.
 */
protected void propagateModification(Tuple left, Object right, int tupleindex, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda)
{
  Tuple    tuple    = mem.getTuple(state, left, right);
  ITupleConsumerNode[] tcs = tconsumers;
  for(int j=0; tcs!=null && j<tcs.length; j++)
    tcs[j].modifyTuple(tuple, tupleindex, type, oldvalue, newvalue, state, mem, agenda);
}
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Remove an object from the object index.
 *  @param object The object.
 *  @param ci The constraint indexer.
 */
public void removeObject(Object object, ConstraintIndexer ci)
{
  getIndexedMemory(ci).removeObject(object);
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Remove a tuple from the memory.
 *  @param left The tuple.
 *  @param bmem The beta memory.
 */
public void removeTuple(Tuple left, BetaMemory bmem)
{
  bmem.removeTuple(left, this);
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Notification when a rule has been removed.
 *  @param rule The removed rule.
 */
public void ruleRemoved(IRule rule)
{
  node.removeRule(rule);
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Get the memory for this node.
 *  @return The memory.
 */
public Collection getNodeMemory(ReteMemory mem)
{
  return mem.hasNodeMemory(this)
    ? ((BetaMemory)mem.getNodeMemory(this)).getResultMemory()
    : null;
}
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Get the indexed objects per tuple.
 *  @param tuple The indexed tuple.
 *  @param ci The constraint indexer. 
 */
public Set getObjects(Tuple tuple, ConstraintIndexer ci)
{
  IndexedConstraintMemory    mem    = getIndexedMemory(ci);
  Object    value    = mem.getTupleValue(tuple);
  return mem.getObjects(value);
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Get the indexed tuples per object.
 *  @param object The indexed object.
 *  @param ci The constraint indexer. 
 */
public Set getTuples(Object object, ConstraintIndexer ci)
{
  IndexedConstraintMemory    mem    = getIndexedMemory(ci);
  Object    value    = mem.getObjectValue(object);
  return mem.getTuples(value);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Get the memory for this node.
 *  @return The memory.
 */
public Collection getNodeMemory(ReteMemory mem)
{
  return mem.hasNodeMemory(this)
    ? ((CollectMemory)mem.getNodeMemory(this)).getResultMemory()
    : null;
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Add an value -> object pair to the object index.
 *  @param value The value.
 *  @param object The object.
 *  @param ci The constraint indexer.
 */
public void addObject(Object value, Object object, ConstraintIndexer ci)
{
  getIndexedMemory(ci).addObject(value, object);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Add an value -> object pair to the tuple index.
 *  @param value The value.
 *  @param tuple The tuple.
 *  @param ci The constraint indexer.
 */
public void addTuple(Object value, Tuple tuple, ConstraintIndexer ci)
{
  getIndexedMemory(ci).addTuple(value, tuple);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Remove an value -> object pair from the tuple index.
 *  @param object The object.
 *  @param ci The constraint indexer.
 */
public void removeTuple(Tuple tuple, ConstraintIndexer ci)
{
  getIndexedMemory(ci).removeTuple(tuple);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Propagate a change of a tuple in the result memory.
 */
protected void propagateModification(Tuple left, Object right, int tupleindex, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda)
{
  Tuple    tuple    = mem.getTuple(state, left, right);
  ITupleConsumerNode[] tcs = tconsumers;
  for(int j=0; tcs!=null && j<tcs.length; j++)
    tcs[j].modifyTuple(tuple, tupleindex, type, oldvalue, newvalue, state, mem, agenda);
}
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Remove an object from the object index.
 *  @param object The object.
 *  @param ci The constraint indexer.
 */
public void removeObject(Object object, ConstraintIndexer ci)
{
  getIndexedMemory(ci).removeObject(object);
}
 
jadex.rules.rulesystem.rete.nodes

Most used classes

  • ReteNode
    ReteNode implementation of the IConditionSystem.
  • AbstractBetaNode
    A beta node has the purpose to perform a constraints check between (at least) two objects. The beta
  • AlphaNode
    An alpha node is a 1-input -> 1-output node which propagates objects matching its constraints.
  • BetaNode
    A beta node has the purpose to perform a constraints check between (at least) two objects. The beta
  • CollectNode
    The purpose of a collect node is to compress a number of tuples to a new tuple, which contains a mul
  • IObjectConsumerNode,
  • IObjectSourceNode,
  • ITupleConsumerNode,
  • ITupleSourceNode,
  • SplitNode,
  • TerminalNode,
  • TestNode,
  • TypeNode,
  • AbstractNode,
  • BetaMemory$IndexedConstraintMemory,
  • BetaMemory,
  • CollectMemory,
  • InitialFactNode,
  • LeftInputAdapterNode
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