|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--cafeteria.CafeteriaEntry
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).
| 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 |
public static final int MAIN
public static final int CHOICE1
public static final int CHOICE2
public static final int CHEAP
public static final int SUPPLEMENTALS
public static final int BEVERAGES
public static final int SOUP
public static final int ADDONS
public static final int ALL
public int kind
public java.util.Date date
public java.lang.String meal
public java.lang.String soup
public java.lang.String[] supplementals
public java.lang.String[] beverages
| Constructor Detail |
public CafeteriaEntry()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||