|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.bt747.loc.LocationSender
public abstract class LocationSender
Constructor Summary | |
---|---|
LocationSender(Model m)
Create and answer a new instance of LocationSender. |
Method Summary | |
---|---|
java.lang.String |
getBluetoothAdress()
|
java.lang.String |
getLastError()
Chekc for the las occured error due to communication problems. |
int |
getUpdatePeriod()
|
boolean |
isDisabled()
Check whether this instance is disabled due to fatal errors. |
void |
modelEvent(ModelEvent e)
|
void |
notifyConnectionFailure(java.lang.String reason)
Callback method to be used by a BT747HttpSender (or other similar service class) which is asynchronously doing its work. |
void |
notifyFatalFailure(java.lang.String reason)
Callback method to be used by a BT747HttpSender (or other similar service class) which is asynchronously doing its work. |
void |
notifySuccess()
Callback method to be used by a BT747HttpSender (or other similar service class) which is asynchronously doing its work. |
void |
setBluetoothAdress(java.lang.String addr)
|
void |
setDisabled(boolean disabled)
Set or reset the disabled flag of this instance. |
void |
setUpdatePeriod(int updatePeriod)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationSender(Model m)
m
- Model The Model that this instance will belong toMethod Detail |
---|
public void modelEvent(ModelEvent e)
modelEvent
in interface ModelListener
public int getUpdatePeriod()
public void setUpdatePeriod(int updatePeriod)
public java.lang.String getBluetoothAdress()
public void setBluetoothAdress(java.lang.String addr)
public boolean isDisabled()
public void setDisabled(boolean disabled)
disabled
- boolean If true the the instance will be disabled, if false
the instance is not disabled.public java.lang.String getLastError()
public void notifyFatalFailure(java.lang.String reason)
reason
- String An error messagepublic void notifyConnectionFailure(java.lang.String reason)
reason
- String An error messagepublic void notifySuccess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |