cafeteria
Class CafeteriaEntry

java.lang.Object
  |
  +--cafeteria.CafeteriaEntry

public class CafeteriaEntry
extends java.lang.Object
implements java.io.Serializable

this class represents an cafeteria entry. An entry is part of the total cafeteria plan of one day. The entry serves as event, request and reply of cafeteria information.

In case of an request, only the kind field is necessary to be set. In case of an event or an reply the kind and date field are obligatory. Other fields are optional depending on the kind of event or request.

Example:

     kind          = MAIN
     date          = 17.05.1999
     meal          = "Rahmschnitzel"
     soup          = "Kartoffelsuppe"
     supplementals = { "Spätzle", "Salat" }
     beverages     = null
 
It has to be serializable to be transmitted via a software bus (like iBus).

Version:
1.0 99-05-18 15:30 Initial coding.
1.1 99-05-18 17:53 type of kind changed to int, types of constants were missing (int)
1.2 99-05-18 18:12 extends Serializable changed to implements
Author:
Torsten Illmann
See Also:
Serialized Form

Field Summary
static int ADDONS
          means or request for all non-meal stuff.
static int ALL
          means or request for total cafeteria menu of actual time.
 java.lang.String[] beverages
          optional name(s) of beverages.
static int BEVERAGES
          means or request for beverages like coke, sprite, juice.
static int CHEAP
          means or request for cheap meal.
static int CHOICE1
          means or request for alternative meal 1.
static int CHOICE2
          means or request for alternative meal 2.
 java.util.Date date
          actual date, only filled by senders.
 int kind
          kind identifier cafeteria entry (see constants).
static int MAIN
          means or request for main meal.
 java.lang.String meal
          optional name of meal.
 java.lang.String soup
          optional name of soup.
static int SOUP
          means or request for soup.
 java.lang.String[] supplementals
          optional name(s) of supplementals.
static int SUPPLEMENTALS
          means or request for supplementals like. noodles, fries, salad, veg.
 
Constructor Summary
CafeteriaEntry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN

public static final int MAIN
means or request for main meal.

CHOICE1

public static final int CHOICE1
means or request for alternative meal 1.

CHOICE2

public static final int CHOICE2
means or request for alternative meal 2.

CHEAP

public static final int CHEAP
means or request for cheap meal.

SUPPLEMENTALS

public static final int SUPPLEMENTALS
means or request for supplementals like. noodles, fries, salad, veg.

BEVERAGES

public static final int BEVERAGES
means or request for beverages like coke, sprite, juice.

SOUP

public static final int SOUP
means or request for soup.

ADDONS

public static final int ADDONS
means or request for all non-meal stuff.

ALL

public static final int ALL
means or request for total cafeteria menu of actual time.

kind

public int kind
kind identifier cafeteria entry (see constants).

date

public java.util.Date date
actual date, only filled by senders.

meal

public java.lang.String meal
optional name of meal.

soup

public java.lang.String soup
optional name of soup.

supplementals

public java.lang.String[] supplementals
optional name(s) of supplementals.

beverages

public java.lang.String[] beverages
optional name(s) of beverages.
Constructor Detail

CafeteriaEntry

public CafeteriaEntry()