Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Logic Simulation. simulation class for an input change to this wire public stati

ID: 3828114 • Letter: L

Question

Logic Simulation. simulation class for an input change to this wire public static final class InputchangeEvent extends Simulation .Event f private final Wire the wire with an input that changes private final int oldv the former value on w private final int newv: the new value on w Construct an input change event. @param time the time at which the input changes. param w the wire where the input changes param ov the previous logic value carried over w @param nv the new logic value carried over w public InputChangeEvent float time Wire W int ov, int nv) f super time this this oldv OV this newv nv; Every event must provide a trigger method public void trigger Simulation. schedule new outputchangeEvent time w.delay w, oldv newv

Explanation / Answer

Here two classes are provided

1)InputChangeEvent

2)OutputChangeEvent

For the simulation purpose the OutputChangeEvent is dependent on InputChangeEvent.And vice versa is also true.

As we are scheduing InputChangeEvent object in OutputChangeEvent.

In my opinion,the InputChangeEvent class should be public

and OutputChangeEvent class must be private.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote