Digital Twin - GUI
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes | List of all members
GUI.Datatypes.Order Class Reference

A wrapper class for orders. More...

Public Member Functions

 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...
 

Public Attributes

int Amount
 How many items are requested. More...
 

Private Attributes

DateTime dueTime
 When is this order due. More...
 

Static Private Attributes

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...
 

Detailed Description

A wrapper class for orders.

Constructor & Destructor Documentation

GUI.Datatypes.Order.Order ( String  dueDay,
int  amount 
)

The constructor.

Parameters
dueDayString that has a DateTime format. Resembles the day when order is due.
amountDetermines how many items are requested.

Member Function Documentation

int GUI.Datatypes.Order.getDueTimeslot ( DateTime  start,
double  d 
)

Computes the timeslot when the order is due.

Parameters
startStart of time horizon.
dFactor 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
startStart of interval.
endEnd of interval.
Returns
True if in between start and end, else false.

Member Data Documentation

int GUI.Datatypes.Order.Amount

How many items are requested.

DateTime GUI.Datatypes.Order.dueTime
private

When is this order due.

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: