as a literal according to its original definition or
as a literal prob. When written according to
literal prob, a belief becomes an expectation. Ac-
cording to the definition of literal prob it is possi-
ble to associate a time range to an expectation, which
must follow the structure of t point range. A time
range allows expectations to be time-bound, so that it
is possible to hypothesize about something for a pe-
riod of time in the present and/or future. Thus a time
range includes an initial time and a final time. The ini-
tial time can be expressed either as an arithmetical ex-
pression that can include the reserved word ‘Now’, or
directly the word ‘Now’. We have created this word
‘Now’ for easily referring to the ”current time” (in
milliseconds). The final time can be expressed either
as an arithmetical expression or as the reserved word
‘Infinite’ (indicating an undetermined time in the fu-
ture). Moreover, a belief can also become an expecta-
tion if one of its annotations is a probability. A prob-
ability is one annotation with the form prob(P,V),
where P is a numerical value between 0 and 1 and
V is an optional component that can have the values
positive or negative. We have included this com-
ponent to simulate what an appraisal process would
do in order to use expectations for determining their
influence in the agent affective state. For example
consider the next portion of a Jason code:
belief[prob__(Number,Connotation)]<T1, T2>
In this example the expectation has a structure
similar to the structure of a belief, that has a prob-
ability Number, a valence Connotation and a time
range (T1 represents the initial time and T2 represents
the final time). We use the probability to indicate the
level of expectedness of the expectation. Thus we can
use this probability to check the impact generated by
an expectation in the calculation of the affective state
(Golub et al., 2009). We also allow to specify the
valence of expectations to indicate whether the con-
sequences of their fulfillment are positive or negative.
Determining the valence of expectations may be one
of the tasks performed by an appraisal process, so
that future extensions of the present approach won’t
need the expectations’ valence component. Finally,
one of the innovations we propose is the possibility
of defining expectations for a time range. Within this
time range the expectations can be fulfilled. Once the
time range has ended, it is considered that expecta-
tions haven’t been fulfilled. For example, one expec-
tation where the agent believes that the weather will
be cloudy with a probability of 0.5 (at some point be-
tween now and within two hours) and where the agent
considers that a cloudy weather is “something good”
can be written as:
time(cloudy)[prob__(0.5,positive)]<Now,
Now+2*60*60*1000>
If within that time range the time(cloudy) belief
is inserted in the agent belief base (either through the
perception process or by a message received from an-
other agent), then the expectation will be fulfilled. If
two hours later no belief time(cloudy) is perceived
or received as a message, the expectation is consid-
ered not fulfilled.
3.3 New Step in the Jason Reasoning
Cycle
A Jason agent configuration is defined by a tuple
hag,C, M,T,si (Vieira et al., 2007). The components
of this tuple can be modified on each step of the agent
reasoning cycle. The first component (ag) represents
the agent program which contains a set of beliefs bs
and a set of plans ps. C represents the agent circum-
stance, containing the current set of intentions, events,
and actions to be performed in the agent environment.
M is the component that stores the agent communica-
tion aspects. T stores temporary information includ-
ing relevant plans in relation to an event (R), appli-
cable plans (Ap), and data considered in a particu-
lar reasoning cycle including the current intention (ι),
event (ε), and applicable plan (ρ). Finally s contains
the step of the reasoning cycle being executed, where
s ∈ {ProcMsg, SelEv, RelPl, ApplPl, SelAppl, AddIM,
SelInt, ExecInt, ClrInt}. In our approach we have in-
cluded a new element es in the agent program ag, rep-
resenting the set of expectations of the agent. Also,
the agent temporary information T has been modified.
We have included a new component Exp in T that rep-
resents the expectations pending of being processed
by any dependent process such as an appraisal pro-
cess. We define Exp as a tuple h f pe, f ne,n f pe,n f nei
were f pe represents the set of fulfilled positive expec-
tations, f ne the set of fulfilled negative expectations,
n f pe the set of not fulfilled positive expectations, and
n f ne the set of not fulfilled negative expectations.
One expectation can be removed due to three rea-
sons: (1) because there is an action in the agent code
to eliminate it, (2) because it has been fulfilled or (3)
because it hasn’t been fulfilled. In the last two cases,
we keep a record of this expectation. This record is
able to differentiate fulfilled from unfulfilled expec-
tations and also positive from negative (consequences
of) expectations (fulfillment). We use this differen-
tiation for determining the influence on the affective
state. Following this criteria Exp is updated in two
different moments during the agent reasoning cycle.
Firstly it is updated in the br f (belief revision func-
tion), in charge of updating the agent’s beliefs accord-
ing to what is perceived. Secondly it is updated at
ECTA 2016 - 8th International Conference on Evolutionary Computation Theory and Applications
234