23
ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. [email protected] Downloading REGATE :http://www.gate.cnrs.fr/~zeiliger/regate/regate.htm This presentation : http://www.gate.cnrs.fr/~zeiliger/regate/RegateIntro.ppt

ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. [email protected] Downloading

Embed Size (px)

Citation preview

Page 1: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

A Presentation of REGATE

Romain ZeiligerCNRS-GATE

93 Chemin des Mouilles, 69130Ecully, France.

[email protected]

Downloading REGATE :http://www.gate.cnrs.fr/~zeiliger/regate/regate.htm

This presentation : http://www.gate.cnrs.fr/~zeiliger/regate/RegateIntro.ppt

Page 2: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Technical Aspects

• Windows 95, 98 and NT platforms

• Internet protocols (TCP/IP)

• One software only : used as client or server

Page 3: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

server

Players

(clients)

Liaison Internet (TCP/IP)

Architecture

Page 4: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Server screen sample

Page 5: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Player screen sample

Page 6: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

REGATE highlights

• Simple : – one software : works as server or client !

– standard player interface : no interface design !

• Flexible : – script programming :

• 12 statements only.

– multi-lingual• one script encompasses several languages

• each player can interact in his own language

• Efficient :– easy debug using artificial players

Page 7: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Preparing an Experiment

• A three stages process :– 1-Scripting

– 2-Debugging• one computer - simulating players

• n computers - using artificial players

– 3-Testing• n computers - using human players

Page 8: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

1- Scripting with REGATE

• Every experiment has to be programmed as a script

• Scripts are object-Event based:– 4 predefined objects : SERVER, J1, J2, J3

– 3 players roles

– 12 statements only.

– No predefined message (except START)

– Ex

• Script can be enhanced by specific programming.

Page 9: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Script structure

Statements section

Data section

Page 10: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Messaging

Regate server

Regate player

J1

Regate player

J2

SGEND

SG

END

objects

message

statements

START

Page 11: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Players and groups

Regate server

Regate player

J1

Regate player

J2

Regate player

J1

Regate player

J2Regate player

J1

Regate player

J2

roles

Page 12: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Roles

J1

Regate server

J1

J1

J2

Send to every J1

roles

Page 13: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Variables

• Each object (SERVER, J1, J2, J3) has its own variables

• Messages can “transport” variables from the SERVER to any player and vv.

definition

transport

SG,d

OFFRE1OK,offre1

Regate server

Regate player

Regate server

Page 14: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Advanced statement example

If session parameter is 1

Send to every J1

message RESJEU1Variable

s

and variable

gj

(with j=player number)

Page 15: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Player interface

Script Player screen

Page 16: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Multi-lingual features

All texts in english

for all players

Each player select his own language

Multi-lingual experiments :

Page 17: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

2- Debugging the scripts in simulation mode

Simulated

players

screens

Script

window

Goal : check the program’s syntax and logic

Page 18: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

3- Debugging the scripts with artificial players

Artificial J1

Regate server

Artificial J1

Artificial J1

Artificial J2

Running the server with artificial players option

Defining input variables range for artificial values

Goal : check the experiment implementation in context

Page 19: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Before running the experiment

Defining the data to be recorded :

Defining the experiment session plan :

Defining the data to be displayed on the server :

Page 20: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Running the experiment

Regate.exe SERVER

Regate.exe CLIENT 156.18.56.107

Regate.exe CLIENT 156.18.56.107

Regate.exe CLIENT 156.18.56.107

Regate.exe CLIENT 156.18.56.107

IP N° 156.18.56.107

Experiment progress

Feedback

Page 21: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

Limitations & future work

• Limitations– integers only

– 16 players

– limited statement set

– one group restriction in some cases

• Future work– overcome limitations

– improve recovery on errors

– improve script language (extended to Microsoft VB ?)

– improve server and player interface

– going HTTP ?

Page 22: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

REGATE use

• 31 scripts in library– Ultimatum bargaining games

– Public goods

– Principal agents

– Others (ex : bank panic ...)

• Experiments in :– GATE, Université Lumière, Lyon.

– GRESE, Université de Franche-Comté, Besançon.

– BETA, Université Louis Pasteur, Strasbourg.

– Humbolt Universitat, Berlin.

– University of Karlsruhe.

– Pittsburg University.

– Purdue University, West Lafayette.

– CIRANO, Université de Montreal.

Page 23: ME2 - CNRS-GATE July 7, 00 A Presentation of REGATE Romain Zeiliger CNRS-GATE 93 Chemin des Mouilles, 69130 Ecully, France. zeiliger@gate.cnrs.fr Downloading

ME2 - CNRS-GATE July 7, 00

REGATE statement set

• tell(thetext)

• tell(Txx,thetext)

• tell(-)

• tell()

• ask(OK)

• ask(NUM,invar,max)

• ask(NSB,invar,max,min,echoexpression)

• ask(TEX,invar)

• ask(ALT,invar,label1,label2,value1,value2)

• ask(TRI,inVar,Label1,Label2,Label3,value1,value2,value3)

• send(SERVER,message,var1,var2,...)

• send(Jx,message,var1,var2,...)

• set(avar=value)

• (avar=value)any_statement

•timer(Tend,Twarning,TextEnd,TextWarning)•pause(delay_in_milliseconds)•even(avar)•gains(AVERAGE,avar,gainrow,validrounds,taux)•random(avar,max)•gains(AVERAGE,inVar,gainRow,LastRounds,Taux)•publicdisplay(ttt [var] ttt)•table(nrow,ncol,labelrow1,labelrow2,...)•tableupdate(a11,a12,a13,...)•traces(thetext [var] and etc )•feedback(label1,label2,label3,...)•feedbackupdate(var1,var2,var3...)

Basics

Advanced