-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemo.java
More file actions
95 lines (67 loc) · 2.18 KB
/
Demo.java
File metadata and controls
95 lines (67 loc) · 2.18 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/**
*
*/
package edu.unlv.mis768.Model;
import java.util.ArrayList;
/**
* @author Tyler
*
*/
public class Demo {
/**
* @param args
*/
public static void main(String[] args) {
// ArrayList Simulate Database
// Sample User- patient
String userName = "Tyler";
int id = 1;
String userPassword = "mis768";
User user = new User(userName, userPassword);
// Sample User- Provider
String providerName="test";
int providerId = 2;
String providerPassword="provider";
User userProvider = new User(providerName, providerPassword);
// Sample Family
int shelter = 1;
String sur = "Williams";
Family fam = new Family(user, shelter, sur);
// Sample Patient
ArrayList<String> phy = new ArrayList<String>(5);
phy.add("Concussion");
ArrayList<String> mental = new ArrayList<String>();
mental.add("Anxiety");
ArrayList<String> wk = new ArrayList<String>();
wk.add("trade");
// Create Patient Object
Patient patient = new Patient(user, phy,mental,wk);
//User user
//Sample Provider
//* Probably not needed as subclasses wil be using the system
String address = "sample address 1";
String phoneNumber = "7028851234";
ArrayList<Patient> patientList = new ArrayList<Patient>();
// Create Provider Object
Provider provider = new Provider(userProvider,address,phoneNumber,patientList);
// Sample Work Provider
ArrayList<String> skills = new ArrayList<String>();
// Loop Needed
//skills.add(work.getSkills());
int openings = 5;
// Create Work Provider object
Work work = new Work(provider, skills, openings);
// Loop Needed
//patientList.add(work.getPassword());
// Sample Healthcare Provider
// Sample Shelter Provider
// Display objects
String message = "";
message += "User-Patient: " + user.toString() + "\n";
message += "User-Provider: " + userProvider.toString() + "\n";
message += "Patient: " + patient.toString() + "\n";
message += "Provider: " + provider.toString() + "\n";
message += "Provider-Work: " + work.toString() + "\n";
System.out.print(message);
}
}