Package aleph.comm

Examples of aleph.comm.Address


    locator = HyFlow.getLocator();
    }
   
  @Override
  public void setNext(Object id, ControlContext context, String nextId){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    ((Node)locator.open(context, id, "w")).setNext(nextId, context);
  }
View Full Code Here


    ((Node)locator.open(context, id, "w")).setNext(nextId, context);
  }

  @Override
  public String getNext(Object id, ControlContext context){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((Node)locator.open(context, id, "r")).getNext(context);
  }
View Full Code Here

    return ((Node)locator.open(context, id, "r")).getNext(context);
  }

  @Override
  public Integer getValue(Object id, ControlContext context){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((Node)locator.open(context, id, "r")).getValue(context);
  }
View Full Code Here

    locator = HyFlow.getLocator();
    }
   
  @Override
  public void setRightChild(Object id, ControlContext context, String rightId){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    ((Node)locator.open(context, id, "w")).setRightChild(rightId, context);
  }
View Full Code Here

    ((Node)locator.open(context, id, "w")).setRightChild(rightId, context);
  }

  @Override
  public String getRightChild(Object id, ControlContext context){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((Node)locator.open(context, id, "r")).getRightChild(context);
  }
View Full Code Here

    return ((Node)locator.open(context, id, "r")).getRightChild(context);
  }

  @Override
  public void setLeftChild(Object id, ControlContext context, String leftId){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    ((Node)locator.open(context, id, "w")).setLeftChild(leftId, context);
  }
View Full Code Here

    ((Node)locator.open(context, id, "w")).setLeftChild(leftId, context);
  }

  @Override
  public String getLeftChild(Object id, ControlContext context){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((Node)locator.open(context, id, "r")).getLeftChild(context);
  }
View Full Code Here

    return ((Node)locator.open(context, id, "r")).getLeftChild(context);
  }
 
  @Override
  public Integer getValue(Object id, ControlContext context){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((Node)locator.open(context, id, "r")).getValue(context);
  }
View Full Code Here

  @Override
  public void borrow(Object id, ControlContext context,
      List<String> accountNums, int branching, boolean initiator,
      int amount){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    ((LoanAccount)locator.open(context, id, "w")).borrow(accountNums, branching, initiator, amount, context);   
  }
View Full Code Here

  }

  @Override
  public int sum(Object id, ControlContext context,
      List<String> accountNums, int branching){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((LoanAccount)locator.open(context, id, "r")).sum(accountNums, branching, context);
  }
View Full Code Here

TOP

Related Classes of aleph.comm.Address

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.