Question: I need help with this Java Data Structures assignment. Thanks Runtime Interface Methods public interface RunTimeInterface { public static enum TimeUnits {Seconds, MilliSeconds, MicroSeconds, NanoSeconds};

I need help with this Java Data Structures assignment. Thanks

I need help with this Java Data Structures assignment. Thanks Runtime InterfaceMethods public interface RunTimeInterface { public static enum TimeUnits {Seconds, MilliSeconds, MicroSeconds,NanoSeconds}; public static enum MemoryUnits {Bytes, KiloBytes, MegaBytes}; public TimeUnits getTimeUnits(); publicvoid setTimeUnits(TimeUnits timeUnits); public MemoryUnits getMemoryUnits(); public void setMemoryUnits(MemoryUnits memoryUnits); public doublegetLastRunTime(); public double getLastMemoryUsage(); public double[] getRunTimes(); public double[] getMemoryUsages(); public voidresetRunTimes(); public void addRuntime(long runTime); public double getAverageRunTime(); public double getAverageMemoryUsage(); }Queue Interface Stack Interface Iterable Interface Iterator Interface Node Class Driver Interface

Runtime Interface Methods

Details 1. RunTime Class You will be expanding the functionality of theRunTime class to implement the expanded RunTime Interface The interface may bedownloaded from RunTimeInterface.iava 2. Array Based Queue class You will write theArrayBasedgueue.java class which will implement the Queue Interface The interface may bedownloaded from QueueInterface.iava. Please note that Queue Interface extends the Iterable Interface.

See the Information On The Iterable Interface below 3. Linked Queue Class

public interface RunTimeInterface { public static enum TimeUnits {Seconds, MilliSeconds, MicroSeconds, NanoSeconds}; public static enum MemoryUnits {Bytes, KiloBytes, MegaBytes}; public TimeUnits getTimeUnits(); public void setTimeUnits(TimeUnits timeUnits); public MemoryUnits getMemoryUnits(); public void setMemoryUnits(MemoryUnits memoryUnits); public double getLastRunTime(); public double getLastMemoryUsage(); public double[] getRunTimes(); public double[] getMemoryUsages(); public void resetRunTimes(); public void addRuntime(long runTime); public double getAverageRunTime(); public double getAverageMemoryUsage(); }

Queue Interface

You will write the Linkedgueue. java class which will implement the QueueInterface. The interface may be downloaded from QueueInterfaceiava. Please note that Queue

Stack Interface

Interface extends the Iterable Interface. See the Information On The Iterable Interfacebelow. Also note that the Linked Queue Class should be a Doubly

Iterable Interface

Linked Queue. 4. Array Based Stack Class You will write the ArrayBasedstack.

java class which will implement the Stack Interface. The interface may be

Iterator Interface

downloaded from StackInterface.iava. Please note that Stack Interface extends the Iterable InterfaceSee the Information On The Iterable Interface below

Node Class

image text in transcribedimage text in transcribed

Driver Interface

image text in transcribedimage text in transcribed

Details 1. RunTime Class You will be expanding the functionality of the RunTime class to implement the expanded RunTime Interface The interface may be downloaded from RunTimeInterface.iava 2. Array Based Queue class You will write the ArrayBasedgueue.java class which will implement the Queue Interface The interface may be downloaded from QueueInterface.iava. Please note that Queue Interface extends the Iterable Interface. See the Information On The Iterable Interface below 3. Linked Queue Class You will write the Linkedgueue. java class which will implement the Queue Interface. The interface may be downloaded from QueueInterfaceiava. Please note that Queue Interface extends the Iterable Interface. See the Information On The Iterable Interface below. Also note that the Linked Queue Class should be a Doubly Linked Queue. 4. Array Based Stack Class You will write the ArrayBasedstack. java class which will implement the Stack Interface. The interface may be downloaded from StackInterface.iava. Please note that Stack Interface extends the Iterable Interface See the Information On The Iterable Interface below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!