AbstractBelief.html

684 lines | 32.879 kB Blame History Raw Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_20) on Mon Sep 22 13:06:33 BRT 2014 -->
<title>AbstractBelief</title>
<meta name="date" content="2014-09-22">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="AbstractBelief";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AbstractBelief.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../bdi4jade/belief/AbstractBeliefSet.html" title="class in bdi4jade.belief"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?bdi4jade/belief/AbstractBelief.html" target="_top">Frames</a></li>
<li><a href="AbstractBelief.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.bdi4jade.core.MetadataElementImpl">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">bdi4jade.belief</div>
<h2 title="Class AbstractBelief" class="title">Class AbstractBelief&lt;K,V&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../bdi4jade/core/MetadataElementImpl.html" title="class in bdi4jade.core">bdi4jade.core.MetadataElementImpl</a></li>
<li>
<ul class="inheritance">
<li>bdi4jade.belief.AbstractBelief&lt;K,V&gt;</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>K</code> - the type of the belief name or key.</dd>
<dd><code>V</code> - the type of the belief value.</dd>
</dl>
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief">Belief</a>&lt;K,V&gt;, <a href="../../bdi4jade/core/MetadataElement.html" title="interface in bdi4jade.core">MetadataElement</a>, jade.content.Concept, jade.content.ContentElement, jade.content.Term, java.io.Serializable, java.lang.Cloneable</dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../bdi4jade/belief/AbstractBeliefSet.html" title="class in bdi4jade.belief">AbstractBeliefSet</a>, <a href="../../bdi4jade/belief/DerivedBelief.html" title="class in bdi4jade.belief">DerivedBelief</a>, <a href="../../bdi4jade/belief/PersistentBelief.html" title="class in bdi4jade.belief">PersistentBelief</a>, <a href="../../bdi4jade/belief/TransientBelief.html" title="class in bdi4jade.belief">TransientBelief</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">AbstractBelief&lt;K,V&gt;</span>
extends <a href="../../bdi4jade/core/MetadataElementImpl.html" title="class in bdi4jade.core">MetadataElementImpl</a>
implements <a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief">Belief</a>&lt;K,V&gt;</pre>
<div class="block">This is an abstract class that implements the <a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief"><code>Belief</code></a> interface. It
 implements some of the interface methods, leaving some implementations to the
 subclasses, mainly the choice of how the belief value is stored.
 
 It is class observable by belief bases (<a href="../../bdi4jade/belief/BeliefBase.html" title="class in bdi4jade.belief"><code>BeliefBase</code></a>), allowing the
 observation on changes in the value of this belief.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Ingrid Nunes</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../serialized-form.html#bdi4jade.belief.AbstractBelief">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.bdi4jade.core.MetadataElementImpl">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;bdi4jade.core.<a href="../../bdi4jade/core/MetadataElementImpl.html" title="class in bdi4jade.core">MetadataElementImpl</a></h3>
<code><a href="../../bdi4jade/core/MetadataElementImpl.html#metadata">metadata</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#AbstractBelief--">AbstractBelief</a></span>()</code>
<div class="block">The default constructor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#AbstractBelief-K-">AbstractBelief</a></span>(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>&nbsp;name)</code>
<div class="block">Initializes a belief with its name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#AbstractBelief-K-V-">AbstractBelief</a></span>(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>&nbsp;name,
              <a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&nbsp;value)</code>
<div class="block">Initializes a belief with its name and an initial value.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#addBeliefBase-bdi4jade.belief.BeliefBase-">addBeliefBase</a></span>(<a href="../../bdi4jade/belief/BeliefBase.html" title="class in bdi4jade.belief">BeliefBase</a>&nbsp;beliefBase)</code>
<div class="block">Adds a belief base that contains this belief.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#clone--">clone</a></span>()</code>
<div class="block">Clones a belief.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;obj)</code>
<div class="block">Returns true of the object is a belief and has the same name of this
 belief.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.util.Set&lt;<a href="../../bdi4jade/belief/BeliefBase.html" title="class in bdi4jade.belief">BeliefBase</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#getBeliefBases--">getBeliefBases</a></span>()</code>
<div class="block">Returns the belief bases with which this belief is associated.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#getName--">getName</a></span>()</code>
<div class="block">Returns the name of this belief.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#hashCode--">hashCode</a></span>()</code>
<div class="block">Returns the hash code of this belief name.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#notifyBeliefBases-bdi4jade.event.BeliefEvent-">notifyBeliefBases</a></span>(<a href="../../bdi4jade/event/BeliefEvent.html" title="class in bdi4jade.event">BeliefEvent</a>&nbsp;beliefEvent)</code>
<div class="block">Notifies the belief bases with which this belief is associated that the
 value of this belief has changed.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#removeBeliefBase-bdi4jade.belief.BeliefBase-">removeBeliefBase</a></span>(<a href="../../bdi4jade/belief/BeliefBase.html" title="class in bdi4jade.belief">BeliefBase</a>&nbsp;beliefBase)</code>
<div class="block">Removes a belief base that does not contain this belief anymore.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#setName-K-">setName</a></span>(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>&nbsp;name)</code>
<div class="block">Sets the name of this belief.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#setValue-V-">setValue</a></span>(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&nbsp;value)</code>
<div class="block">Sets a new value to the belief and notifies belief bases of changes on
 this belief value.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#toString--">toString</a></span>()</code>
<div class="block">Returns this belief as a string in the form:
 "belief name = belief value".</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../bdi4jade/belief/AbstractBelief.html#updateValue-V-">updateValue</a></span>(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&nbsp;value)</code>
<div class="block">Sets the value of this belief.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.bdi4jade.core.MetadataElementImpl">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;bdi4jade.core.<a href="../../bdi4jade/core/MetadataElementImpl.html" title="class in bdi4jade.core">MetadataElementImpl</a></h3>
<code><a href="../../bdi4jade/core/MetadataElementImpl.html#getMetadata--">getMetadata</a>, <a href="../../bdi4jade/core/MetadataElementImpl.html#getMetadata-java.lang.Object-">getMetadata</a>, <a href="../../bdi4jade/core/MetadataElementImpl.html#hasMetadata-java.lang.Object-">hasMetadata</a>, <a href="../../bdi4jade/core/MetadataElementImpl.html#putMetadata-java.lang.Object-java.lang.Object-">putMetadata</a>, <a href="../../bdi4jade/core/MetadataElementImpl.html#removeMetadata-java.lang.Object-">removeMetadata</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.bdi4jade.belief.Belief">
<!--   -->
</a>
<h3>Methods inherited from interface&nbsp;bdi4jade.belief.<a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief">Belief</a></h3>
<code><a href="../../bdi4jade/belief/Belief.html#getValue--">getValue</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.bdi4jade.core.MetadataElement">
<!--   -->
</a>
<h3>Methods inherited from interface&nbsp;bdi4jade.core.<a href="../../bdi4jade/core/MetadataElement.html" title="interface in bdi4jade.core">MetadataElement</a></h3>
<code><a href="../../bdi4jade/core/MetadataElement.html#getMetadata--">getMetadata</a>, <a href="../../bdi4jade/core/MetadataElement.html#getMetadata-java.lang.Object-">getMetadata</a>, <a href="../../bdi4jade/core/MetadataElement.html#hasMetadata-java.lang.Object-">hasMetadata</a>, <a href="../../bdi4jade/core/MetadataElement.html#putMetadata-java.lang.Object-java.lang.Object-">putMetadata</a>, <a href="../../bdi4jade/core/MetadataElement.html#removeMetadata-java.lang.Object-">removeMetadata</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="AbstractBelief--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AbstractBelief</h4>
<pre>public&nbsp;AbstractBelief()</pre>
<div class="block">The default constructor. It should be only used if persistence frameworks
 are used.</div>
</li>
</ul>
<a name="AbstractBelief-java.lang.Object-">
<!--   -->
</a><a name="AbstractBelief-K-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AbstractBelief</h4>
<pre>public&nbsp;AbstractBelief(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>&nbsp;name)</pre>
<div class="block">Initializes a belief with its name.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - the belief name.</dd>
</dl>
</li>
</ul>
<a name="AbstractBelief-java.lang.Object-java.lang.Object-">
<!--   -->
</a><a name="AbstractBelief-K-V-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>AbstractBelief</h4>
<pre>public&nbsp;AbstractBelief(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>&nbsp;name,
                      <a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&nbsp;value)</pre>
<div class="block">Initializes a belief with its name and an initial value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - the belief name.</dd>
<dd><code>value</code> - the belief initial value.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="addBeliefBase-bdi4jade.belief.BeliefBase-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addBeliefBase</h4>
<pre>public&nbsp;void&nbsp;addBeliefBase(<a href="../../bdi4jade/belief/BeliefBase.html" title="class in bdi4jade.belief">BeliefBase</a>&nbsp;beliefBase)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../bdi4jade/belief/Belief.html#addBeliefBase-bdi4jade.belief.BeliefBase-">Belief</a></code></span></div>
<div class="block">Adds a belief base that contains this belief. The agent whose capability
 contains this belief in the belief base believes in this belief.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../bdi4jade/belief/Belief.html#addBeliefBase-bdi4jade.belief.BeliefBase-">addBeliefBase</a></code>&nbsp;in interface&nbsp;<code><a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief">Belief</a>&lt;<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>,<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>beliefBase</code> - the belief base to be added.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../bdi4jade/belief/Belief.html#addBeliefBase-bdi4jade.belief.BeliefBase-"><code>Belief.addBeliefBase(BeliefBase)</code></a></dd>
</dl>
</li>
</ul>
<a name="clone--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clone</h4>
<pre>public&nbsp;java.lang.Object&nbsp;clone()
                       throws java.lang.CloneNotSupportedException</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../bdi4jade/belief/Belief.html#clone--">Belief</a></code></span></div>
<div class="block">Clones a belief. This may be particularly useful to share this belief
 with other agents, copying the information of this belief without sharing
 other information, such as belief bases associated with a belief.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../bdi4jade/belief/Belief.html#clone--">clone</a></code>&nbsp;in interface&nbsp;<code><a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief">Belief</a>&lt;<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>,<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>clone</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the clone of this belief.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.CloneNotSupportedException</code> - if an implementation of a belief does not support clone.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>Object.clone()</code></dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public final&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;obj)</pre>
<div class="block">Returns true of the object is a belief and has the same name of this
 belief.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>obj</code> - to object to be tested if it is equal to this belief.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>Object.equals(Object)</code></dd>
</dl>
</li>
</ul>
<a name="getBeliefBases--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBeliefBases</h4>
<pre>public&nbsp;java.util.Set&lt;<a href="../../bdi4jade/belief/BeliefBase.html" title="class in bdi4jade.belief">BeliefBase</a>&gt;&nbsp;getBeliefBases()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../bdi4jade/belief/Belief.html#getBeliefBases--">Belief</a></code></span></div>
<div class="block">Returns the belief bases with which this belief is associated.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../bdi4jade/belief/Belief.html#getBeliefBases--">getBeliefBases</a></code>&nbsp;in interface&nbsp;<code><a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief">Belief</a>&lt;<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>,<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the belief bases.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../bdi4jade/belief/Belief.html#getBeliefBases--"><code>Belief.getBeliefBases()</code></a></dd>
</dl>
</li>
</ul>
<a name="getName--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getName</h4>
<pre>public final&nbsp;<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>&nbsp;getName()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../bdi4jade/belief/Belief.html#getName--">Belief</a></code></span></div>
<div class="block">Returns the name of this belief.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../bdi4jade/belief/Belief.html#getName--">getName</a></code>&nbsp;in interface&nbsp;<code><a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief">Belief</a>&lt;<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>,<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the string that is the belief name.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../bdi4jade/belief/Belief.html#getName--"><code>Belief.getName()</code></a></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public final&nbsp;int&nbsp;hashCode()</pre>
<div class="block">Returns the hash code of this belief name.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the hash code of this belief.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>Object.hashCode()</code></dd>
</dl>
</li>
</ul>
<a name="notifyBeliefBases-bdi4jade.event.BeliefEvent-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notifyBeliefBases</h4>
<pre>protected&nbsp;void&nbsp;notifyBeliefBases(<a href="../../bdi4jade/event/BeliefEvent.html" title="class in bdi4jade.event">BeliefEvent</a>&nbsp;beliefEvent)</pre>
<div class="block">Notifies the belief bases with which this belief is associated that the
 value of this belief has changed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>beliefEvent</code> - the <a href="../../bdi4jade/event/BeliefEvent.html" title="class in bdi4jade.event"><code>BeliefEvent</code></a> describing the change on this belief
            value</dd>
</dl>
</li>
</ul>
<a name="removeBeliefBase-bdi4jade.belief.BeliefBase-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeBeliefBase</h4>
<pre>public&nbsp;void&nbsp;removeBeliefBase(<a href="../../bdi4jade/belief/BeliefBase.html" title="class in bdi4jade.belief">BeliefBase</a>&nbsp;beliefBase)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../bdi4jade/belief/Belief.html#removeBeliefBase-bdi4jade.belief.BeliefBase-">Belief</a></code></span></div>
<div class="block">Removes a belief base that does not contain this belief anymore. The
 agent whose capability does not contain this belief in the belief base
 does not believe in this belief anymore.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../bdi4jade/belief/Belief.html#removeBeliefBase-bdi4jade.belief.BeliefBase-">removeBeliefBase</a></code>&nbsp;in interface&nbsp;<code><a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief">Belief</a>&lt;<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>,<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>beliefBase</code> - the belief base to be removed.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../bdi4jade/belief/Belief.html#removeBeliefBase-bdi4jade.belief.BeliefBase-"><code>Belief.removeBeliefBase(BeliefBase)</code></a></dd>
</dl>
</li>
</ul>
<a name="setName-java.lang.Object-">
<!--   -->
</a><a name="setName-K-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setName</h4>
<pre>public&nbsp;void&nbsp;setName(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>&nbsp;name)</pre>
<div class="block">Sets the name of this belief. Ideally, a belief name should be final and
 initialized in the constructor. This method should be only used if
 persistence frameworks are used.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - the name to set.</dd>
</dl>
</li>
</ul>
<a name="setValue-java.lang.Object-">
<!--   -->
</a><a name="setValue-V-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre>public final&nbsp;void&nbsp;setValue(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&nbsp;value)</pre>
<div class="block">Sets a new value to the belief and notifies belief bases of changes on
 this belief value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../bdi4jade/belief/Belief.html#setValue-V-">setValue</a></code>&nbsp;in interface&nbsp;<code><a href="../../bdi4jade/belief/Belief.html" title="interface in bdi4jade.belief">Belief</a>&lt;<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">K</a>,<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the new value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../bdi4jade/belief/Belief.html#setValue-V-"><code>Belief.setValue(Object)</code></a></dd>
</dl>
</li>
</ul>
<a name="toString--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
<div class="block">Returns this belief as a string in the form:
 "belief name = belief value".</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the string representation of this belief.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>Object.toString()</code></dd>
</dl>
</li>
</ul>
<a name="updateValue-java.lang.Object-">
<!--   -->
</a><a name="updateValue-V-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>updateValue</h4>
<pre>protected abstract&nbsp;void&nbsp;updateValue(<a href="../../bdi4jade/belief/AbstractBelief.html" title="type parameter in AbstractBelief">V</a>&nbsp;value)</pre>
<div class="block">Sets the value of this belief. It is invoked by the
 <a href="../../bdi4jade/belief/AbstractBelief.html#setValue-V-"><code>setValue(Object)</code></a> method.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the value to set.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AbstractBelief.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../bdi4jade/belief/AbstractBeliefSet.html" title="class in bdi4jade.belief"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?bdi4jade/belief/AbstractBelief.html" target="_top">Frames</a></li>
<li><a href="AbstractBelief.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.bdi4jade.core.MetadataElementImpl">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>