示例#1
0
 /// <summary>
 /// Add a desire to the agent
 /// </summary>
 /// <param name="desire">The desire to add</param>
 public void AddDesire(Desire <TAction, TAgent, TEnvironment> desire)
 {
     Desires.Add(desire);
     desire.Agent = this;
 }
示例#2
0
 /// <summary>
 /// Is a desire compatible and achievable in combination with this desire/intention
 /// </summary>
 /// <param name="otherDesire">Other desire to test</param>
 /// <returns>True if compatible, false otherwise</returns>
 internal bool IsCompatibleWith(Desire <TAction, TAgent, TEnvironment> otherDesire) => Desire.IsCompatibleWith(otherDesire);
示例#3
0
 /// <summary>
 /// Is a desire compatible and achievable in combination with this desire/intention
 /// </summary>
 /// <param name="otherDesire">Other desire to test</param>
 /// <returns>False by default</returns>
 public virtual bool IsCompatibleWith(Desire <TAction, TAgent, TEnvironment> otherDesire) => false;
示例#4
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="desire">The desire upon which this intention is based upon</param>
 public Intention(Desire <TAction, TAgent, TEnvironment> desire)
 {
     Desire = desire;
 }