public void update(Observable obs, Object obj) {
if (logTextArea == null)
return;
Mote mote = (Mote) obj;
Log moteLogInterface = (Log) obs;
String outputString = "TIME:" + simulation.getSimulationTime() + "\t";
if (mote != null && mote.getInterfaces().getMoteID() != null) {
outputString = outputString.concat("ID:" + mote.getInterfaces().getMoteID().getMoteID() + "\t");
}
// Match against filter (if any)
if (filterText != null && !filterText.equals("") &&
!moteLogInterface.getLastLogMessages().contains(filterText))
return;
outputString = outputString.concat(moteLogInterface.getLastLogMessages());
final String str = outputString;
SwingUtilities.invokeLater(new Runnable() {
public void run() {