-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathOrder.java
More file actions
62 lines (48 loc) · 1.08 KB
/
Order.java
File metadata and controls
62 lines (48 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.31.1.5860.78bb27cc6 modeling language!*/
import java.util.*;
// line 66 "model.ump"
// line 169 "model.ump"
public class Order
{
//------------------------
// MEMBER VARIABLES
//------------------------
//Order Attributes
private String delivery;
private double cost;
private boolean fb;
private String feedback;
//Order Associations
private List<Pizza> pizzas = new ArrayList<Pizza>();
//------------------------
// CONSTRUCTOR
//------------------------
public Order(String aDelivery, Pizza pizza, double aCost, boolean aFb, String aFeedback)
{
delivery = aDelivery;
pizzas.add(pizza);
cost = aCost;
fb = aFb;
feedback = aFeedback;
}
//------------------------
// INTERFACE
//------------------------
public void setDelivery(String aDelivery)
{
delivery = aDelivery;
}
public String getDelivery()
{
return delivery;
}
public void setCost(double aCost)
{
cost = aCost;
}
public double getCost()
{
return cost;
}
}