int moteNr = Integer.parseInt(mote);
if (moteNr < 0 || simulation.getMotesCount() <= moteNr) {
return createErrorMessage("Bad mote ID specified: " + moteNr);
}
State state = simulation.getMote(moteNr).getState();
if (state == State.DEAD)
return XML_OK_START + 0 + XML_OK_END;
return XML_OK_START + 1 + XML_OK_END;
} else if (type.equals("time")) {