137 ∗ **<b>Documentat ion i n h e r i t e d from {@ l ink B a s i c B e l i e f A s s i gnm e n t }:</b><BR>**
138 ∗ **{ @ inh e r i tD o c}** 139 ∗/
140 **p u b l i c v o id** clear **( ) {** 141 System . err . println ( **" E r r o r : : "+t h i s** . getClass **( ) .** getName **( ) +**
142 " . c l e a r ( ) i s not imp lemented ! " ) ;
143 System . err . println ( **" P l e a s e imp lement c l e a r ( ) i n your c l a s s w ith @Overr ide "**←֓
) ;
144 System . exit **( 0 ) ;**
145 }
146 147 /∗∗
148 ∗ Th is method i s not d e f i n e d f o r c l a s s { @ l ink BBACommon } and g e **n e r a t e s an** ←֓
e r r o r 149 ∗ **r e p o r t and a cod e e x i t .**
150 ∗ **<BR><BR>**
151 ∗ **<b>Documentat ion i n h e r i t e d from {@ l ink B a s i c B e l i e f A s s i gnm e n t }:</b><BR>** 152 ∗ **{ @ inh e r i tD o c}**
153 ∗/
154 **p u b l i c b o o l e an** add ( Prop aProposition , **d oub l e** anAssignmentValue ) {
155 System . err . println ( **" E r r o r : : "+t h i s** . getClass **( ) .** getName **( ) +**
156 " . add ( ) i s not imp lemented ! " ) ;
157 System . err . println ( " P l e a s e imp lement add ( ) i n your c l a s s w ith @Overr ide " ) ;
158 System . exit **( 0 ) ;**
159 **r e t u r n t r u e** ;
160 }
161 162 **p u b l i c b o o l e an** add ( Assignment <Prop> anAssignment ) {
163 **r e t u r n** add ( anAssignment . attribute , anAssignment . value ) ;
164 }
165 166 **p u b l i c b o o l e an** addAll ( Collection <Assignment <Prop>> assignTab ) {
167 **// bbaTree ;**
168 **b o o l e an** test**=t r u e** ;
169 **f o r** ( Iterator<Assignment <Prop>> it = assignTab . iterator **( ) ;**
170 it . hasNext **( ) ; ) {**
171 test=test&&add ( it . next **( ) ) ;**
172 }
173 **r e t u r n** test ;
174 }
175 176 /∗∗
177 ∗ Th is method i s not d e f i n e d f o r c l a s s { @ l ink BBACommon } and g e **n e r a t e s an** ←֓
e r r o r 178 ∗ **r e p o r t and a cod e e x i t .** 179 ∗ **<BR><BR>**
180 ∗ **<b>Documentat ion i n h e r i t e d from {@ l ink B a s i c B e l i e f A s s i gnm e n t }:</b><BR>**
181 ∗ **{ @ inh e r i tD o c}** 182 ∗/
183 **p u b l i c** Assignment <Prop> findProposition ( Assignment <Prop> anAssignment ) {
184 System . err . println ( **" E r r o r : : "+t h i s** . getClass **( ) .** getName **( ) +**
185 " . f i n d P r o p o s i t i o n ( Ass ignment<Prop>) i s not imp lemented ! " ) ;
186 System . err . println ( **" P l e a s e imp lement f i n d P r o p o s i t i o n ( Ass ignment<Prop>)"** +
187 " i n your c l a s s w ith @Overr ide " ) ;
188 System . exit **( 0 ) ;**
189 **r e t u r n n u l l** ;
190 }
191 192 **p u b l i c** Assignment <Prop> findProposition ( Prop aProposition ) {
193 Assignment <Prop> searchAssign = new Assignment <Prop **>() ;**
194 searchAssign . attribute=aProposition ; 195 **r e t u r n** findProposition ( searchAssign ) ;
196 }
197 198 **p u b l i c d oub l e** m ( Prop aProposition ) {
199 200 Assignment <Prop> foundPair=findProposition ( aProposition ) ;
201 i f ( foundPair != n u l l ) { 202 **r e t u r n** foundPair . value ;
203 }
204 r e t u r n **0 . ;** 205 }
206 207 /∗∗