summaryrefslogtreecommitdiff
path: root/contrib/summerschool/2013/bestPractices/Facebook.gf
blob: 859f6abffafe0d390b2be08258f0487638cd9cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
abstract Facebook = {

flags startcat = Action ;

cat 
  SPerson;
  Person;
  Place;
  Page;
  Action; 
  Item ;

fun 
 CheckIn : SPerson -> Place -> Action ;
 BeFriends : SPerson -> Person -> Action ;
 Like : SPerson -> Item -> Action ; 

 SPersonToPerson : SPerson -> Person ;
 MorePersons : SPerson -> Person -> Person ;
 
 PlaceToItem : Place -> Item ;
 PageToItem : Page -> Item ;
 ActionToItem : Action -> Item ;

 
---------
 
You : SPerson ;
John : SPerson; 
Mary : SPerson; 

Frauinsel : Place;
GF : Page; 

}