org.jactr.tools.bridge
Class GoalFeeder

java.lang.Object
  extended by org.jactr.tools.bridge.GoalFeeder

Deprecated.

@Deprecated
public abstract class GoalFeeder
extends java.lang.Object

GoalFeeder is part of a two part general solution for the providing goals to a running model. The second part is the ResponseCollector. There can be only one instanceof of either active at anytime in the runtime, as the custom actions require static access.

Author:
developer

Constructor Summary
GoalFeeder()
          Deprecated.  
 
Method Summary
abstract  org.jactr.core.chunk.IChunk createNextGoal(org.jactr.core.model.IModel model, java.util.Map<java.lang.String,java.lang.Object> variableBindings)
          Deprecated. This is called by the NextGoalAction.
 double getGoalDelay(org.jactr.core.chunk.IChunk chunk)
          Deprecated. return how long it will take before the chunk returned by getNextGoal() is inserted into the goal buffer.
static GoalFeeder getGoalFeeder()
          Deprecated.  
 org.jactr.core.chunk.IChunk getNextGoal(org.jactr.core.model.IModel model, java.util.Map<java.lang.String,java.lang.Object> variableBindings)
          Deprecated.  
abstract  boolean hasNextGoal(org.jactr.core.model.IModel model, java.util.Map<java.lang.String,java.lang.Object> variableBindings)
          Deprecated.  
static void setGoalFeeder(GoalFeeder feeder)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoalFeeder

public GoalFeeder()
Deprecated. 
Method Detail

setGoalFeeder

public static void setGoalFeeder(GoalFeeder feeder)
Deprecated. 

getGoalFeeder

public static GoalFeeder getGoalFeeder()
Deprecated. 

createNextGoal

public abstract org.jactr.core.chunk.IChunk createNextGoal(org.jactr.core.model.IModel model,
                                                           java.util.Map<java.lang.String,java.lang.Object> variableBindings)
Deprecated. 
This is called by the NextGoalAction. A new goal chunk should be created and returned. if null is returned, the model will typically stop.

Parameters:
model -
Returns:

hasNextGoal

public abstract boolean hasNextGoal(org.jactr.core.model.IModel model,
                                    java.util.Map<java.lang.String,java.lang.Object> variableBindings)
Deprecated. 

getGoalDelay

public double getGoalDelay(org.jactr.core.chunk.IChunk chunk)
Deprecated. 
return how long it will take before the chunk returned by getNextGoal() is inserted into the goal buffer. chunk may be null, but this should still return a valid time, as that will be when the goal buffer contents are removed

Parameters:
chunk - may be null
Returns:
0.05

getNextGoal

public org.jactr.core.chunk.IChunk getNextGoal(org.jactr.core.model.IModel model,
                                               java.util.Map<java.lang.String,java.lang.Object> variableBindings)
Deprecated.