Answer To: DPIT121 – Lab Exercise 4 Due: Week 6 lab You already submitted phase one of your project delivery as...
Valupadasu answered on Sep 10 2021
Lab4/.classpath
Lab4/.project
Lab4
org.eclipse.jdt.core.javabuilder
org.eclipse.jdt.core.javanature
Lab4/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Lab4/bin/main01/Address.class
package main01;
public synchronized class Address implements Comparable {
private int streetNum;
private String street;
private String suburb;
private String city;
public void Address(int, String, String, String);
public void Address(Address);
public Address clone() throws CloneNotSupportedException;
public int getStreetNum();
public String getStreet();
public String getSuburb();
public String getCity();
public void setStreetNum(int);
public void setStreet(String);
public void setSuburb(String);
public void setCity(String);
public String toString();
public int compareTo(Address);
}
Lab4/bin/main01/BusinessPlan.class
package main01;
public synchronized class BusinessPlan extends MobilePlan implements Cloneable {
protected int numberOfEmployees;
protected int ABN;
public void BusinessPlan(String, int, MobilePhone, int, int, MyDate, int, int);
public void BusinessPlan(BusinessPlan);
public BusinessPlan clone() throws CloneNotSupportedException;
public int getNumberOfEmployees();
public int getABN();
public void setNumberOfEmployees(int);
public void setABN(int);
public void print();
public String toString();
public double calcPayment(int);
}
Lab4/bin/main01/Main01.class
package main01;
public synchronized class Main01 {
public void Main01();
public static void main(String[]);
public static void addPlan(User, MobilePlan);
}
Lab4/bin/main01/MobileCompany.class
package main01;
public synchronized class MobileCompany implements Cloneable {
private String name;
private java.util.ArrayList users;
private String adminUsername;
private String adminPassword;
private int flatRate;
public void MobileCompany(String, java.util.ArrayList, String, String, int);
public void MobileCompany(MobileCompany);
public java.util.ArrayList deepCopyUsers();
public java.util.ArrayList shallowCopyUsers();
public MobileCompany clone() throws CloneNotSupportedException;
public String getName();
public java.util.ArrayList getUsers();
public String getAdminUsername();
public String getAdminPassword();
public int getFlatRate();
public void setName(String);
public void setUsers(java.util.ArrayList);
public void setAdminUsername(String);
public void setAdminPassword(String);
public void setFlatRate(int);
public boolean validateAdmin(String, String);
public boolean addUser(User);
public Boolean addUser(String, int, Address);
public User findUser(int);
public boolean addPlan(int, MobilePlan);
public MobilePlan findPlan(int, int);
public void printPlans(int);
public void print();
public String toString();
public boolean createPersonalPlan(int, String, int, MobilePhone, int, int, MyDate, String);
public boolean createBusinessPlan(int, String, int, MobilePhone, int, int, MyDate, int, int);
public double calcTotalPayments(int);
public double calcTotalPayments();
public boolean mobilePriceRise(int, double);
public void mobilePriceRise(double);
public java.util.ArrayList allPlans();
public java.util.ArrayList filterByMobileModel(int, String);
public java.util.ArrayList filterByExpiryDate(int, MyDate);
public java.util.ArrayList filterByMobileModel(String);
public java.util.ArrayList filterByExpiryDate(MyDate);
public java.util.ArrayList sortUsers();
}
Lab4/bin/main01/MobilePhone.class
package main01;
public synchronized class MobilePhone implements Cloneable {
private String model;
private mobileType type;
private int memorySize;
private double price;
public void MobilePhone(String, mobileType, int, double);
public void MobilePhone(MobilePhone);
public MobilePhone clone() throws CloneNotSupportedException;
public String getModel();
public mobileType getType();
public int getMemorySize();
public double getPrice();
public void setModel(String);
public void setType(mobileType);
public void setMemorySize(int);
public void setPrice(double);
public void priceRise(double);
public void print();
public String toString();
}
Lab4/bin/main01/MobilePlan.class
package main01;
public abstract synchronized class MobilePlan implements Comparable {
protected String userName;
protected int id;
protected MobilePhone handset;
protected int internetQuota;
protected int capLimit;
protected MyDate expiryDate;
public void MobilePlan(String, int, MobilePhone, int, int, MyDate);
public void MobilePlan(MobilePlan);
public static java.util.ArrayList filterByExpiryDate(java.util.ArrayList, MyDate);
public MobilePlan clone() throws CloneNotSupportedException;
public static java.util.ArrayList shallowCopy(java.util.ArrayList);
public static java.util.ArrayList deepCopy(java.util.ArrayList);
public String getUserName();
public int getId();
public MobilePhone getHandset();
public int getInternetQuota();
public int getCapLimit();
public MyDate getExpiryDate();
public void setHandSet(MobilePhone);
public void setInternetQuota(int);
public void setCapLimit(int);
public void setExpiryDate(MyDate);
public void setMobileModel(String);
public void setUserName(String);
public void print();
public String toString();
public abstract double calcPayment(int);
public static void printPlans(java.util.ArrayList);
public static double calcTotalPayments(java.util.ArrayList, int);
public void mobilePriceRise(double);
public static void mobilePriceRiseAll(java.util.ArrayList, double);
public static java.util.ArrayList filterByMobileModel(java.util.ArrayList, String);
public int compareTo(MobilePlan);
}
Lab4/bin/main01/mobileType.class
package main01;
final synchronized enum mobileType {
public static final mobileType ANDRIOD;
public static final mobileType IOS;
public static final mobileType WINDOWS;
static void ();
private void mobileType(String, int);
public static mobileType[] values();
public static mobileType valueOf(String);
}
Lab4/bin/main01/MyDate.class
package main01;
public synchronized class MyDate implements Cloneable, Comparable {
protected int year;
protected int month;
protected int day;
public void MyDate(int, int, int);
public void MyDate(MyDate);
public MyDate clone() throws CloneNotSupportedException;
public Boolean isExpired(MyDate);
public int getYear();
public int getMonth();
public int getDay();
public void setYear(int);
public void setMonth(int);
public void setDay(int);
public String toString();
public int compareTo(MyDate);
}
Lab4/bin/main01/PersonalPlan.class
package main01;
public synchronized class PersonalPlan extends MobilePlan {
protected String city;
public void PersonalPlan(String, int, MobilePhone, int, int, MyDate, String);
public void PersonalPlan(PersonalPlan);
public String getCity();
public void setCity(String);
public void print();
public String toString();
public double calcPayment(int);
}
Lab4/bin/main01/User.class
package main01;
public synchronized class User implements Comparable {
private String name;
private int userID;
private Address address;
private java.util.ArrayList plans;
public void User(String, int, Address);
public void User(User);
public User clone() throws CloneNotSupportedException;
public java.util.ArrayList deepCopyPlans();
public java.util.ArrayList shallowCopyPlans();
public static java.util.ArrayList shallowCopy(java.util.ArrayList);
public static java.util.ArrayList deepCopy(java.util.ArrayList);
public boolean createPersonalPlan(String, int, MobilePhone, int, int, MyDate, String);
boolean createBusinessPlan(String, int, MobilePhone, int, int, MyDate, int, int);
public java.util.ArrayList filterByExpiryDate(MyDate);
public String getName();
public int getUserID();
public Address getAddress();
public java.util.ArrayList getPlans();
public void setName(String);
public void setAddress(Address);
public void setCity(String);
public MobilePlan findPlan(int);
public boolean addPlan(MobilePlan);
public boolean addPlan1(java.util.ArrayList, MobilePlan);
public void print();
public String toString();
public void printPlans(int);
public double calcTotalPayments(int);
public void mobilePriceRiseAll(double);
public java.util.ArrayList filterByMobileModel(String);
public int compareTo(User);
public int compareTo1(User);
public java.util.ArrayList...