Tabnine Logo
jadex.rules.rulesystem
Code IndexAdd Tabnine to your IDE (free)

How to use jadex.rules.rulesystem

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

origin: net.sourceforge.jadex/jadex-rules

/**
 *  Execute the activation.
 */
public void execute()
{
  getRule().getAction().execute(state, values);
}
origin: net.sourceforge.jadex/jadex-rules-tools

/**
 *  Dispose the panel and remove any listeners.
 */
public void	dispose()
{
  agenda.removeAgendaListener(listener);
}
 
origin: org.activecomponents.jadex/jadex-rules

  /**
   *  Get the string representation.
   *  @return The string representation.
   */
  public String toString()
  {
    return rule.getName()+" needed:  "+time;
  }
}
origin: net.sourceforge.jadex/jadex-rules-tools

  public void actionPerformed(ActionEvent e)
  {
    if(followact.isSelected())
    {
      Activation act = system.getAgenda().getNextActivation();
      if(act!=null && followact.isSelected())
      {
        rulebasepanel.setSelectedBreakpoints(new String[]{act.getRule().getName()});
      }
    }
    else
    {
      rulebasepanel.setSelectedBreakpoints(new String[0]);
    }
  }
});
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Fire all rules until quiescence.
 */
public void	fireAllRules()
{
  IAgenda    agenda    = getAgenda(); 
  state.notifyEventListeners();
  do
  {
    agenda.fireRule();
    state.expungeStaleObjects();
    state.notifyEventListeners();
  }
  while(!agenda.isEmpty());
}
origin: net.sourceforge.jadex/jadex-kernel-bdi

/**
 *  Start monitoring the consequences.
 */
public void startMonitorConsequences()
{
  if(microplansteps && getRuleSystem().isInited())
  {
    monitor_consequences++;
    if(monitor_consequences==1)
      agenda_state = getRuleSystem().getAgenda().getState();
  }
}
origin: net.sourceforge.jadex/jadex-rules-tools

/**
 *  Dispose the panel and remove any listeners.
 */
public void	dispose()
{
  ap.dispose();
  rulebasepanel.dispose();
  system.getAgenda().removeAgendaListener(agendalistener);
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Remove an activation
 *  @param act The activation.
 */
public void removeActivation(Activation act)
{
  this.activations.remove(act);
  if(act.equals(next))
    next = null;
  state++;
  notifyListeners();
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Remove an activation
 *  @param act The activation.
 */
public void removeActivation(Activation act)
{
  this.activations.remove(act);
  if(act.equals(next))
    next = null;
  state++;
  notifyListeners();
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Create a new rule system.
 */
public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc, AbstractAgenda agenda)
{
  this.state	= state;
  this.rulebase	= rulebase;		
  this.matcherfunc	= matcherfunc;
  this.matcherstate = matcherfunc.createMatcherState(state, agenda);		
}
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Create a new rule system.
 */
public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc)
{
  this(state, rulebase, matcherfunc, new FIFOAgenda());
}
 
origin: net.sourceforge.jadex/jadex-rules-tools

/**
 *  Dispose the panel
 *  and remove all listeners.
 */
public void	dispose()
{
  rulebase.removeRulebaseListener(listener);
}
 
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Execute the activation.
 */
public void execute()
{
  getRule().getAction().execute(state, values);
}
origin: net.sourceforge.jadex/jadex-rules

  /**
   *  Get the string representation.
   *  @return The string representation.
   */
  public String toString()
  {
    return rule.getName()+" needed:  "+time;
  }
}
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Remove an activation
 *  @param act The activation.
 */
public void removeActivation(Activation act)
{
  this.activations.remove(act);
  if(act.equals(next))
    next = null;
  state++;
  notifyListeners();
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Remove an activation
 *  @param act The activation.
 */
public void removeActivation(Activation act)
{
  this.activations.remove(act);
  if(act.equals(next))
    next = null;
  state++;
  notifyListeners();
}
 
origin: net.sourceforge.jadex/jadex-rules

/**
 *  Create a new rule system.
 */
public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc, AbstractAgenda agenda)
{
  this.state	= state;
  this.rulebase	= rulebase;		
  this.matcherfunc	= matcherfunc;
  this.matcherstate = matcherfunc.createMatcherState(state, agenda);		
}
origin: org.activecomponents.jadex/jadex-rules

/**
 *  Create a new rule system.
 */
public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc)
{
  this(state, rulebase, matcherfunc, new FIFOAgenda());
}
 
origin: org.activecomponents.jadex/jadex-rules

  /**
   *  Create a string representation of the activation.
   */
  public String	toString()
  {
    return "Activation(rule="+rule.getName()+", values="+values+", priority="+priority+")";
//        return "Activation(rule="+rule.getName()+" priority="+priority+" "+values.hashCode()+")";
  }
}
origin: net.sourceforge.jadex/jadex-rules

  /**
   *  Create a string representation of the activation.
   */
  public String	toString()
  {
    return "Activation(rule="+rule.getName()+", values="+values+", priority="+priority+")";
//        return "Activation(rule="+rule.getName()+" priority="+priority+" "+values.hashCode()+")";
  }
}
jadex.rules.rulesystem

Most used classes

  • RuleSystem
    Rule system is a container for state, rule base, and pattern matcher with agenda.
  • IAgenda
    The agenda interface for a rule system.
  • IRulebase
    Contains the rules of a rule system.
  • Activation
    An activation is a rule and an associated fact tuple which represents a full match. Activations are
  • IRule
    Interface for rules.
  • RuleSystemExecutor,
  • RetePatternMatcherState,
  • ReteNode,
  • AndCondition,
  • BoundConstraint,
  • FunctionCall,
  • LiteralConstraint,
  • NotCondition,
  • ObjectCondition,
  • OrConstraint,
  • PredicateConstraint,
  • Rule,
  • Variable,
  • OperatorFunction
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