A wrapper class for orders.
More...
|
| Order (String dueDay, int amount) |
| The constructor. More...
|
|
int | getDueTimeslot (DateTime start, double d) |
| Computes the timeslot when the order is due. More...
|
|
bool | IsDueBetween (DateTime start, DateTime end) |
| Determins if order is due in a given time interval. More...
|
|
|
static int | hour = 5 |
| We are only given a day when an order is due. Hereby you we set an hour, that is easily changable in code. More...
|
|
A wrapper class for orders.
GUI.Datatypes.Order.Order |
( |
String |
dueDay, |
|
|
int |
amount |
|
) |
| |
The constructor.
- Parameters
-
dueDay | String that has a DateTime format. Resembles the day when order is due. |
amount | Determines how many items are requested. |
int GUI.Datatypes.Order.getDueTimeslot |
( |
DateTime |
start, |
|
|
double |
d |
|
) |
| |
Computes the timeslot when the order is due.
- Parameters
-
start | Start of time horizon. |
d | Factor that determines length of timeslot. Length is 60min*d. |
- Returns
bool GUI.Datatypes.Order.IsDueBetween |
( |
DateTime |
start, |
|
|
DateTime |
end |
|
) |
| |
Determins if order is due in a given time interval.
- Parameters
-
start | Start of interval. |
end | End of interval. |
- Returns
- True if in between start and end, else false.
int GUI.Datatypes.Order.Amount |
How many items are requested.
DateTime GUI.Datatypes.Order.dueTime |
|
private |
int GUI.Datatypes.Order.hour = 5 |
|
staticprivate |
We are only given a day when an order is due. Hereby you we set an hour, that is easily changable in code.
The documentation for this class was generated from the following file: