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

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


        Matcher matcher = pattern.matcher(line);
        if (matcher.find()) {
          if (Integer.decode(matcher.group(1)).intValue() >= getStartAddr()
                  && Integer.decode(matcher.group(1)).intValue() <= getStartAddr() + getSize()) {
            String varName = matcher.group(2);
            varNames.put(varName, new Symbol(
                    Symbol.Type.VARIABLE,
                    varName,
                    getMapFileVarAddress(getData(), varName) + offset,
                    getMapFileVarSize(getData(), varName)));
          }
View Full Code Here


            varSize = -1;
          }

          /* XXX needs to be checked */
          if (!addresses.containsKey(symbol)) {
            addresses.put(symbol, new Symbol(Symbol.Type.VARIABLE, symbol, varAddr, varSize));
          } else {
            int oldAddress = (int) addresses.get(symbol).addr;
            if (oldAddress != varAddr) {
              /*logger.warn("Warning, command response not matching previous entry of: "
               + varName);*/
 
View Full Code Here

   *
   * @param varName Variable name
   * @return Variable address
   */
  public Symbol getVariable(String varName) throws UnknownVariableException {
    Symbol sym = memIntf.getSymbolMap().get(varName);
    if (sym == null) {
      throw new UnknownVariableException(varName);
    }
    return sym;
  }
View Full Code Here

TOP

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

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.