Package Galaxy.Tree.Workflow

Examples of Galaxy.Tree.Workflow.ToolState$Primitive


  public Object deserialize(JsonElement arg0, Type arg1,
      JsonDeserializationContext arg2) throws JsonParseException {
    // TODO Auto-generated method stub
    String parseString = arg0.getAsString();
    HashMap<String,String> map;
    ToolState myToolState = new ToolState();
    PrimitiveOrMap sm = process(new Primitive(parseString));
    if(sm.isFirst())
      myToolState.getToolState().setFirst(sm.getFirst());
    else
      myToolState.getToolState().setSecond(sm.getSecond());
    return myToolState;
  }
View Full Code Here


   
    if (index == 0) {
      return this.values[this.first++];
    }
   
    final $Primitive result = this.get(index);
   
    System.arraycopy(this.values, this.first + index + 1, this.values, this.first + index, this.size() - 1 - index);
    --this.end;
   
    return result;
View Full Code Here

  public void nestedDistanceMatrixAndUnaryOp() {

    DoubleArrayVector vector = new DoubleArrayVector(5,10,3,2,1);
    DistanceMatrix matrix = new DistanceMatrix(vector);
    System.out.println(Deparse.deparseExp(null, matrix));
    Vector negative = new R$primitive$$minus$deferred_d(matrix, AttributeMap.EMPTY);
    DeferredMean mean = new DeferredMean(negative, AttributeMap.EMPTY);
    DeferredGraph graph = new DeferredGraph(mean);

    DeferredJitter jitter = new DeferredJitter();
    JittedComputation computation = jitter.compile(graph.getRoot());
View Full Code Here

  public void nestedDistanceMatrixAndBinaryOp() {

    DoubleArrayVector a = new DoubleArrayVector(1,2,3,4);
    DoubleArrayVector b = new DoubleArrayVector(10,20,30,40,50,60,70,80);

    Vector times = new R$primitive$$times$deferred_dd(a, b, AttributeMap.EMPTY);
    DeferredMean mean = new DeferredMean(times, AttributeMap.EMPTY);
    DeferredGraph graph = new DeferredGraph(mean);

    Vector x = compute(graph);
    System.out.println(x);
View Full Code Here

TOP

Related Classes of Galaxy.Tree.Workflow.ToolState$Primitive

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.