
## Source Code: Basicbeliefassignment.Java

1 /∗
2 ∗ **B a s i c B e l i e f A s s i g nm e n t . j av a : p a r t o f pa ckag e R e f e r e eTo o lb ox ; I n t e r f a c e f o r** 3 ∗ **Ba s i c B e l i e f Ass igm ents .**
4 **∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗**
5 ∗ Copyr ight ( c ) 2010 FrÃc dÃc **ric D am b r e v i l l e**
6 ∗
7 ∗ Author : FrÃc dÃc **ric D am b r e v i l l e <h t tp : / / em a i l . f r e d e r i c d a m b r e v i l l e . com>**
8 ∗ 9 ∗ **Th is f i l e i s p a r t o f R e f e r e eTo o lb ox .**
10 ∗
11 ∗ **R e f e r e eTo o lb ox i s f r e e s o f t w a r e : you can r e d i s t r i b u t e i t and/ o r mod i fy** 12 ∗ **i t und e r th e t e rms o f th e GNU G e n e r a l P u b l i c L i c e n s e a s p u b l i sh e d by** 13 ∗ **th e Fr e e S o f twa r e Foundat ion , e i t h e r v e r s i o n 3 o f th e L i c e n se , o r**
14 ∗ **( a t your o p t i o n ) any l a t e r v e r s i o n .**
15 ∗ 16 ∗ R e f e r e eTo o lb ox i s d i s t r i b u t e d i n th e hope th a t i t w i l l be u s e **f u l ,**
17 ∗ but WITHOUT ANY WARRANTY; w i th ou t ev en th e im p l i e d warranty o f 18 ∗ **MERCHANTABILITY o r FITNESS FOR A PARTICULAR PURPOSE. S e e the**
19 ∗ **GNU G e n e r a l P u b l i c L i c e n s e f o r more d e t a i l s .** 20 ∗
21 ∗ **You sh ou ld have r e c e i v e d a copy o f th e GNU G e n e r a l P u b l i c L i c en s e**
22 ∗ **a l on g w ith R e f e r e eTo o lb ox . I f not , s e e <h t tp : / /www . gnu . o rg / l i c e n s e s />.** 23 **∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗**
24 ∗/
25 26 **pa ckag e** RefereeToolbox ;
27 28 **import** java . util . ∗ ;
29 30 /∗∗
31 ∗ Con t a in s th e m in ima l d e c l a r a t i o n f o r c l a s s e s managing b e l i **e f a s s i gnm e n t** 32 ∗ **s t r u c t u r e s , b e l i e f a s s i gnm e n t p r o c e s s e s and f u s e r s .**
33 ∗ **Th is i n t e r f a c e i s imp lemented by a l l th e t h e s e c l a s s e s .** 34 ∗
35 ∗ @author <A h r e f =" h t tp : / / em a i l . f r e d e r i c d a m b r e v i l l e . com">FrÃc dÃc ric ←֓
D am b r e v i l l e</A>
36 ∗
37 ∗ 38 ∗
39 ∗ **<BR><BR><t a b l e b o rd e r = '1 ' c e l l P a d d i n g ='4'>< t r><td>** 40 ∗ <f o n t c o l o r ="\#008000" s t y l e =" f on t−**f am i l y : g e o r g i a ">**
41 ∗ Copyr ight ( c ) 2010 FrÃc dÃc **ric D am b r e v i l l e<BR>**
42 ∗ **<BR>**
43 ∗ **R e f e r e eTo o lb ox i s f r e e s o f t w a r e : you can r e d i s t r i b u t e i t and/ o r mod i fy** 44 ∗ **i t und e r th e t e rms o f th e GNU G e n e r a l P u b l i c L i c e n s e a s p u b l i sh e d by**
45 ∗ **th e Fr e e S o f twa r e Foundat ion , e i t h e r v e r s i o n 3 o f th e L i c e n se , o r**
46 ∗ **( a t your o p t i o n ) any l a t e r v e r s i o n .<BR>** 47 ∗ **<BR>** 48 ∗ R e f e r e eTo o lb ox i s d i s t r i b u t e d i n th e hope th a t i t w i l l be u s e **f u l ,**
49 ∗ but WITHOUT ANY WARRANTY; w i th ou t ev en th e im p l i e d warranty o f 50 ∗ **MERCHANTABILITY o r FITNESS FOR A PARTICULAR PURPOSE. S e e the** 51 ∗ **GNU G e n e r a l P u b l i c L i c e n s e f o r more d e t a i l s .<BR>**
52 ∗ **<BR>**
53 ∗ **You sh ou ld have r e c e i v e d a copy o f th e GNU G e n e r a l P u b l i c L i c en s e** 54 ∗ **a l on g w ith R e f e r e eTo o lb ox . I f not , s e e** 55 ∗ **<a h r e f = ' h t tp : / /www . gnu . o r g / l i c e n s e s / '> h t tp : / /www . gnu . o r g / l i c e n s e s /</a>.**
56 ∗ **</f on t ></t a b l e><BR>**
57 ∗ 58 ∗/
59 **p u b l i c i n t e r f a c e** BasicBeliefAssignment <Prop **e x t e nd s** Lattice<Prop >, 60 B **e x t e nd s** BasicBeliefAssignment <Prop , B> > 61 **e x t e nd s** minAssignment<Prop> , Cloneable {
62 63 /∗∗
64 ∗ C l e a r th e a s s i gnm e n t s s t o r e d w i t h i n {@ l ink B a s i c B e l i e f A s s **i g nm e n t } , and**
65 ∗ **s t o r e new a s s i gnm e n t s from th e c o l l e c t i o n o f ass ignm ent , <i>anAssignmentTab</ i** ←֓
>.

66 ∗
67 ∗/
68 **b o o l e an** load ( Collection <Assignment <Prop>> anAssignmentTab ) ;
69 70 /∗∗