Sunday, June 16, 2013

JavaFX BBQ details...

Hi there,

The 21st of June is coming closer and here are some more informations about the JavaFX BBQ (which will start around 17:00 - 18:00 o'clock), I've tried to put it in a for you readable format... :)

class JavaFxBBQ() {

  public JavaFxBBQ(boolean wouldLikeToAttend, 
                   boolean wouldLikeToHaveFun, 
                   boolean wouldLikeToEat, 
                   boolean wouldLikeToDrink, 
                   boolean wouldLikeToPresent, 
                   boolean useNavigationSystem, 
                   boolean useStreetMode,
                   boolean latLonMode) {
    
    if (wouldLikeToAttend && wouldLikeToHaveFun) {
      
      if (wouldLikeToEat) {
        bringYourOwnFood();
        if (needSalad) {
          bringYourOwnSalad();
        }
      }

      if (wouldLikeToDrink) {
        if (!beer || !weizen || !water) {
          bringYourOwnDrinks();
        }
      }

      if (wouldLikeToPresent) {
        bringYourComputer();
      }

      if (useNavigationSystem) {
        if (useStreetMode) {
          // use street and city
          putInNavigationSystem("Westfalenstrasse 93"
                                "48165 Münster");
        } else if (latLonMode) {
          // use latitude and longitude
          putInNavigationSystem(51.950085, 7.624097);
        }
      } else {
        // use public transfer from Münster Mainstation
        putInBrowser("http://www.stadtwerke-muenster.de/privatkunden/busverkehr/fahrplanauskunft/efa/fahrplanauskunft.html?name_origin=M%C3%BCnster+Hbf&nameInfo_origin=&name_destination=M%C3%BCnster+%28Westf%29%2C+Merkureck&nameInfo_destination=24047285");

        // use GoogleMaps to find the BBQ
        putInBrowser("https://maps.google.de/maps?f=q&source=s_q&hl=en&geocode=&q=Westfalenstrasse+93,+48165+M%C3%BCnster&aq=&sll=51.950085,7.624097&sspn=0.219646,0.457993&vpsrc=0&ie=UTF8&hq=&hnear=Westfalenstra%C3%9Fe+93,+48165+M%C3%BCnster,+Nordrhein-Westfalen&t=m&z=16"); 
      }     
    } else {
      doWhatEverYouWant();
    }
  }
}

If you have any further question...do not hesitate to contact me on twitter...

Enjoy your weekend and keep coding...

No comments:

Post a Comment