A common scenario in the ubiquitous world is that things should "happen" in the morning when you wake up. What should happen? What sensors, motors, etc would be needed for these to happen?
A washing machine can
Consider the washing machine as a service
A distributed telephone in future might separate the components of phone network connection, answering machine and handset, all connected by wireless network (e.g. Bluetooth). For example, the handset might be any PDA, the answering machine might be any storage device such as a networked disk drive, and the phone network connection might be the phone base station.
Suppose all three device types (PDA, storage, phone base) are available as services (or clients) on a network. What possible messages and data streams might be sent between them? Draw diagrams to show the devices, the messages and the data streams.
Following on from Question 3, write MIDP code to allow the PDA to be used as a handset.
When the handset midlet is started, it should allow the user to query
a phone book stored in a RecordStore
or allow direct entry
of a phone number.
When a number is dialled, the phone should start a PhoneConnection
object running in a separate thread (you do not need to implement this object).
The midlet should then display a "stop" button which will call the method
PhoneConnection.stop()
when selected.
Some services may only have one user at a time. For example, a car can only
have one driver at a time. This could be implemented by a service advertising
itself to lookup services when it is free, and cancelling the advert when it
is in use. It could have methods such as useMe()
and
releaseMe()
.
ServiceRegistrar
.