Package org.contikios.cooja

Examples of org.contikios.cooja.MoteInterfaceHandler


  public void stopNextInstruction() {
    stopNextInstruction = true;
  }

  private MoteInterfaceHandler createMoteInterfaceHandler() {
    return new MoteInterfaceHandler(this, getType().getMoteInterfaceClasses());
  }
View Full Code Here


  public abstract void receivedPacket(RadioPacket p);
  public abstract void sentPacket(RadioPacket p);
 
  public AbstractApplicationMote() {
    moteInterfaces = new MoteInterfaceHandler(this, moteType.getMoteInterfaceClasses());
  }
View Full Code Here

  public AbstractApplicationMote(MoteType moteType, Simulation sim) {
    setSimulation(sim);
    this.moteType = moteType;
    this.memory = new SectionMoteMemory(new HashMap<String, Integer>(), 0);
    this.moteInterfaces = new MoteInterfaceHandler(this, moteType.getMoteInterfaceClasses());
    this.moteInterfaces.getRadio().addObserver(radioDataObserver);
    requestImmediateWakeup();
  }
View Full Code Here

    stopNextInstruction = true;
    getCPU().stop();
  }

  protected MoteInterfaceHandler createMoteInterfaceHandler() {
    return new MoteInterfaceHandler(this, getType().getMoteInterfaceClasses());
  }
View Full Code Here

   */
  public ContikiMote(ContikiMoteType moteType, Simulation sim) {
    setSimulation(sim);
    this.myType = moteType;
    this.myMemory = moteType.createInitialMemory();
    this.myInterfaceHandler = new MoteInterfaceHandler(this, moteType.getMoteInterfaceClasses());

    requestImmediateWakeup();
  }
View Full Code Here

  }

  public boolean setConfigXML(Simulation simulation, Collection<Element> configXML, boolean visAvailable) {
    setSimulation(simulation);
    myMemory = myType.createInitialMemory();
    myInterfaceHandler = new MoteInterfaceHandler(this, myType.getMoteInterfaceClasses());

    for (Element element: configXML) {
      String name = element.getName();

      if (name.equals("motetype_identifier")) {
View Full Code Here

   */
  public ContikiMote(ContikiMoteType moteType, Simulation sim) {
    setSimulation(sim);
    this.myType = moteType;
    this.myMemory = moteType.createInitialMemory();
    this.myInterfaceHandler = new MoteInterfaceHandler(this, moteType.getMoteInterfaceClasses());

    requestImmediateWakeup();
  }
View Full Code Here

  @Override
  public boolean setConfigXML(Simulation simulation, Collection<Element> configXML, boolean visAvailable) {
    setSimulation(simulation);
    myMemory = myType.createInitialMemory();
    myInterfaceHandler = new MoteInterfaceHandler(this, myType.getMoteInterfaceClasses());

    for (Element element: configXML) {
      String name = element.getName();

      if (name.equals("motetype_identifier")) {
View Full Code Here

  public abstract void receivedPacket(RadioPacket p);
  public abstract void sentPacket(RadioPacket p);
 
  public AbstractApplicationMote() {
    moteInterfaces = new MoteInterfaceHandler(this, moteType.getMoteInterfaceClasses());
  }
View Full Code Here

  public AbstractApplicationMote(MoteType moteType, Simulation sim) {
    setSimulation(sim);
    this.moteType = moteType;
    MemoryLayout.getNative();
    this.memory = new SectionMoteMemory(new HashMap<String, Symbol>());
    this.moteInterfaces = new MoteInterfaceHandler(this, moteType.getMoteInterfaceClasses());
    this.moteInterfaces.getRadio().addObserver(radioDataObserver);
    requestImmediateWakeup();
  }
View Full Code Here

TOP

Related Classes of org.contikios.cooja.MoteInterfaceHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.