Package com.tnsai.agents.cognitive
Class CognitiveEngine.Builder
java.lang.Object
com.tnsai.agents.cognitive.CognitiveEngine.Builder
- Enclosing class:
CognitiveEngine
Builder for CognitiveEngine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the agent ID for logging.beliefRevisionStrategy(BeliefRevisionStrategy strategy) Sets the belief revision strategy.Sets the static beliefs.build()Builds the CognitiveEngine.desireConflictResolver(DesireConflictResolver resolver) Sets the desire conflict resolver.Sets the static desires.intentions(List<Intention> intentions) Sets the static intentions.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentId
Sets the agent ID for logging.- Parameters:
agentId- the agent ID- Returns:
- this builder
-
beliefs
Sets the static beliefs.- Parameters:
beliefs- the beliefs- Returns:
- this builder
-
desires
Sets the static desires.- Parameters:
desires- the desires- Returns:
- this builder
-
intentions
Sets the static intentions.- Parameters:
intentions- the intentions- Returns:
- this builder
-
beliefRevisionStrategy
Sets the belief revision strategy.- Parameters:
strategy- the strategy- Returns:
- this builder
-
desireConflictResolver
Sets the desire conflict resolver.- Parameters:
resolver- the resolver- Returns:
- this builder
-
build
Builds the CognitiveEngine.- Returns:
- new CognitiveEngine instance
-