The text defined a class SL_PriorityQueue. What command was used to accomplish the enqueue method?
a. insert(newEntry);
b. insertSorted(newEntry);
c. push(newEntry);
d. addItem(newEntry);
b. insertSorted(newEntry);
You might also like to view...
Discuss the similarities to different patterns used in software engineering. Which pattern fits best?
Adapter pattern – Modelling
A new instrument (AnalogSpeedometer) from a legacy system has to be integrated into
Asteroids (see Figure 1). The existing class AnalogSpeedometer must not be changed.
Therefore an Adapter pattern should be used. Integrate the AnalogSpeedometer into the
existing model.
2) Pattern abstraction
3) Dynamical model
Model the dynamical behaviour of incrementing the speed in a sequence diagram.
Consider the following classes and actors:
AnalogSpeedometer, SpaceShuttleController, “the adapter”, SpaceShuttle, User.
4) Adapter pattern (programming assignment)
Integrate the AnalogSpeedometer by applying the adapter pattern without modifying it
and with minimal modifications to other classes.
An RPM package can be converted to a cpio archive using what command?
A. ?cpioconv B. ?rpm2cpio C. ?rpmconv D. ?conv_arch