renamed schedule event method

This commit is contained in:
fros4943 2008-10-28 13:37:11 +00:00
parent 0c34a1f000
commit 4231e5f41a
3 changed files with 7 additions and 7 deletions

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: ContikiBeeper.java,v 1.6 2008/10/28 12:55:20 fros4943 Exp $ * $Id: ContikiBeeper.java,v 1.7 2008/10/28 13:37:11 fros4943 Exp $
*/ */
package se.sics.cooja.contikimote.interfaces; package se.sics.cooja.contikimote.interfaces;
@ -117,7 +117,7 @@ public class ContikiBeeper extends Beeper implements ContikiMoteInterface, Polle
moteMem.setByteValueOf("simBeeped", (byte) 0); moteMem.setByteValueOf("simBeeped", (byte) 0);
/* Schedule stop beeping (reset energy consumption) */ /* Schedule stop beeping (reset energy consumption) */
mote.getSimulation().addEvent(stopBeepEvent, mote.getSimulation().getSimulationTime()); mote.getSimulation().scheduleEvent(stopBeepEvent, mote.getSimulation().getSimulationTime());
} }
} }

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: ContikiButton.java,v 1.8 2008/10/28 12:55:20 fros4943 Exp $ * $Id: ContikiButton.java,v 1.9 2008/10/28 13:37:11 fros4943 Exp $
*/ */
package se.sics.cooja.contikimote.interfaces; package se.sics.cooja.contikimote.interfaces;
@ -96,7 +96,7 @@ public class ContikiButton extends Button implements ContikiMoteInterface {
releaseButton(); releaseButton();
} else { } else {
/* Reschedule button release */ /* Reschedule button release */
mote.getSimulation().addEvent(releaseButtonEvent, t+1); mote.getSimulation().scheduleEvent(releaseButtonEvent, t+1);
} }
} }
}; };
@ -108,7 +108,7 @@ public class ContikiButton extends Button implements ContikiMoteInterface {
pressButton(); pressButton();
/* Schedule release button */ /* Schedule release button */
mote.getSimulation().addEvent(releaseButtonEvent, mote.getSimulation().getSimulationTime()); mote.getSimulation().scheduleEvent(releaseButtonEvent, mote.getSimulation().getSimulationTime());
} }
public void releaseButton() { public void releaseButton() {

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: ContikiCFS.java,v 1.6 2008/10/28 12:55:20 fros4943 Exp $ * $Id: ContikiCFS.java,v 1.7 2008/10/28 13:37:11 fros4943 Exp $
*/ */
package se.sics.cooja.contikimote.interfaces; package se.sics.cooja.contikimote.interfaces;
@ -132,7 +132,7 @@ public class ContikiCFS extends MoteInterface implements ContikiMoteInterface, P
this.notifyObservers(mote); this.notifyObservers(mote);
/* Reset energy consumption */ /* Reset energy consumption */
mote.getSimulation().addEvent(doneEvent, mote.getSimulation().getSimulationTime()); mote.getSimulation().scheduleEvent(doneEvent, mote.getSimulation().getSimulationTime());
} }
} }