Package org.contikios.cooja.mote.memory.MemoryInterface

Examples of org.contikios.cooja.mote.memory.MemoryInterface.SegmentMonitor


            int addr = (int) moteMem.getVariableAddress("node_id");
            moteMem.addVarMonitor(
                            SegmentMonitor.EventType.READWRITE,
                            "node_id",
                            new SegmentMonitor() {

                @Override
                public void memoryChanged(MemoryInterface memory, SegmentMonitor.EventType type, long address) {
                    if (type == EventType.READ) {
                        System.out.println("Read from node_id.");
View Full Code Here


  private SegmentMonitor memMonitor = null;

  public RimeAddress(final Mote mote) {
    moteMem = new VarMemory(mote.getMemory());
    if (hasRimeAddress()) {
      memMonitor = new SegmentMonitor() {
        @Override
        public void memoryChanged(MemoryInterface memory, SegmentMonitor.EventType type, long address) {
          if (type != SegmentMonitor.EventType.WRITE) {
            return;
          }
View Full Code Here

TOP

Related Classes of org.contikios.cooja.mote.memory.MemoryInterface.SegmentMonitor

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.