brf
public java.util.List<Literal>[] brf(Literal beliefToAdd,
Literal beliefToDel,
Intention i)
throws RevisionFailedException
MADeM Belief Revision Function:
This function detects those literals coming from an utility function that
has been implemented as an AgentSpeak plan. These literals will be of the
form jmadem_compute_utility(Id, U), where Id is the unique
identifier of utility computation and U is the utility value
obtained. When detected, the agent catches the utility value identified by
Id. Otherwise, it invokes the usual Belief Revision Function. That
is, it revises the belief base with the given literal to add, to remove, and
the current intention that triggered the operation.
- Parameters:
beliefToAdd - belief to be added to the belief basebeliefToDel - agent class parametersi - AgentSpeak source code
- Returns:
- List[0] has the list of actual additions to the belief base,
and List[1] has the list of actual deletions; this is used to
generate the appropriate internal events. If nothing change,
returns null.
- Throws:
RevisionFailedException