1 / 12

Project „Neinerln"

Project „Neinerln". Thomas Gaech Martin Oehm 29.06.2009. Agenda. What is Neinerln? Demonstration How does it work ?. What is Neinerln?. A traditional Bavarian card game Similar to the UNO card game The aim is to get rid of your cards. Neinerln – The Cards.

debra
Download Presentation

Project „Neinerln"

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Project „Neinerln" Thomas Gaech Martin Oehm 29.06.2009

  2. Agenda • Whatis Neinerln? • Demonstration • Howdoesitwork? Thomas Gaech, Martin Oehm

  3. WhatisNeinerln? • A traditional Bavariancardgame • Similartothe UNO cardgame • The aimistogetridofyourcards Thomas Gaech, Martin Oehm

  4. Neinerln – The Cards • Four different colours: Thomas Gaech, Martin Oehm

  5. Neinerln – The Cards • Andeight different values: Thomas Gaech, Martin Oehm

  6. WhatWeHaveDone • Developed a client/serverapplicationfortwoplayers • Weused Java / Java RMI • Server: 1128 Linesofcode • Client: 856 Linesofcode Thomas Gaech, Martin Oehm

  7. Demonstration Thomas Gaech, Martin Oehm

  8. Howdoesitwork? • It is essential that the participating client is notified by the object server when a certain event occurs • The client needs to be informed of the updated state of the game, for example when the server has won the game. • Since remote method calls are unidirectional (from the client to the server), it is necessary to use advanced RMI features. Thomas Gaech, Martin Oehm

  9. Polling vs. Callback Server Server … Client Client Thomas Gaech, Martin Oehm

  10. Polling • The client polls the object server by repeatedly invoking a remote method, say hasServerWon(), until the method returns true. • It is a very costly technique in terms of system resources, as each remote method invocation takes up a separate thread on the server host, along with the system resources that its execution entails. Thomas Gaech, Martin Oehm

  11. Callback • In RMI, client callback is a feature that allows an object client to register itself with a remote object server . • The server may then issue a remote method invocation to the client when an awaited event occurs. • With client callbacks, remote method invocations are two-way, or duplex – from the client to the server, and vice versa. Thomas Gaech, Martin Oehm

  12. Thankyouforyourattention. Thomas Gaech, Martin Oehm

More Related