gps.mvc
Class DeviceDirector
java.lang.Object
gps.mvc.DeviceDirector
- All Implemented Interfaces:
- ProtocolConstants
public final class DeviceDirector
- extends java.lang.Object
- implements ProtocolConstants
This class maintains consistency between the used Model and Controllers.
Intermediate step is to use this class as a reference to the Model and
Controller. Later, the intention is to implement come listener strategy to
update Models and Controllers.
Somewhat dirty, but cleaner than it was.
- Author:
- Mario
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
model
public GpsModel model
mtkModel
public MtkModel mtkModel
devController
public GpsController devController
gpsRxTx
public GPSrxtx gpsRxTx
mtkControl
public MtkController mtkControl
DeviceDirector
public DeviceDirector()
setProtocol
public void setProtocol(GPSrxtx gpsRxTx,
int protocol)
setProtocol
public void setProtocol(int protocol)