added get observable method
This commit is contained in:
parent
4c696452ac
commit
596677d054
|
@ -1,6 +1,7 @@
|
||||||
package se.sics.mrm;
|
package se.sics.mrm;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.jdom.Element;
|
import org.jdom.Element;
|
||||||
|
|
||||||
|
@ -261,6 +262,10 @@ public class MRM extends RadioMedium {
|
||||||
radioActivityObservable.addObserver(observer);
|
radioActivityObservable.addObserver(observer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Observable getRadioMediumObservable() {
|
||||||
|
return radioActivityObservable;
|
||||||
|
}
|
||||||
|
|
||||||
public void deleteRadioMediumObserver(Observer observer) {
|
public void deleteRadioMediumObserver(Observer observer) {
|
||||||
// Remove observer from this radio medium
|
// Remove observer from this radio medium
|
||||||
radioActivityObservable.deleteObserver(observer);
|
radioActivityObservable.deleteObserver(observer);
|
||||||
|
@ -280,7 +285,8 @@ public class MRM extends RadioMedium {
|
||||||
return currentChannelModel.getConfigXML();
|
return currentChannelModel.getConfigXML();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean setConfigXML(Collection<Element> configXML) {
|
public boolean setConfigXML(Collection<Element> configXML,
|
||||||
|
boolean visAvailable) {
|
||||||
// Just forwarding to current channel model
|
// Just forwarding to current channel model
|
||||||
return currentChannelModel.setConfigXML(configXML);
|
return currentChannelModel.setConfigXML(configXML);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue