Examples of assign()


Examples of com.tommytony.war.Warzone.assign()

            return true;
          }
          previousTeam.removePlayer(player);
          previousTeam.resetSign();
        }
        zone.assign(player, team);
      }
    }
    return true;
  }
}
View Full Code Here

Examples of edu.uci.ics.hyracks.data.std.util.ArrayBackedValueStorage.assign()

        ArrayBackedValueStorage abvs = variables.get(var);
        if (abvs == null) {
            abvs = new ArrayBackedValueStorage();
            variables.put(var, abvs);
        }
        abvs.assign(value);
    }

    @Override
    public void lookupVariable(QName var, IPointable value) {
        ArrayBackedValueStorage abvs = variables.get(var);
View Full Code Here

Examples of jinngine.math.Matrix3.assign()

    final Matrix3 Bi = MiInv.multiply(Ji.transpose());
    final Matrix3 Bangi = b1.state.inverseinertia.multiply(Jangi.transpose());

    if (b1.isFixed()) {
      Bi.assign(new Matrix3());
      Bangi.assign(new Matrix3());
    }
   
//    final Matrix3 MjInv = Matrix3.identity().multiply(1/b2.state.mass);
    final Matrix3 MjInv = b2.state.inverseanisotropicmass;
    final Matrix3 Bj = MjInv.multiply(Jj.transpose());
View Full Code Here

Examples of jinngine.math.Vector3.assign()

      state.iterations++;   
//        System.out.println("gjk iteration" + " " + v.norm()+ "  : " + state.simplexSize);
     
      // store points of convex objects a and b, and A-B
      sa.assign( Sa.supportPoint(state.v.negate()));
      sb.assign( Sb.supportPoint(state.v));                   
      w.assign( sa.sub(sb) );

      // termination condition
      // ||v||2 -v.w is an upper bound for ||vk-v(A-B)||2 which converges towards zero as k goes large
      if Math.abs(v.dot(v)-v.dot(w)) < epsilon*epsilon  || state.iterations>maxiter || state.simplexSize > 3 )
View Full Code Here

Examples of jinngine.physics.solver.Solver.NCPConstraint.assign()

   
    Solver.NCPConstraint c1 = new NCPConstraint();
    Vector3 va =new Vector3(1,0,0);
    Vector3 vb =new Vector3(-1,0,0);
    Vector3 z = new Vector3(0,0,0);
    c1.assign(b1,b2,
        va,z,vb,z,
        va,z,vb,z,
        -Double.POSITIVE_INFINITY,Double.POSITIVE_INFINITY,null,1, 0);
   
    //This is the system
View Full Code Here

Examples of kdu_jni.Kdu_coords.Assign()

        int c;
        Kdu_coords ref_subs = new Kdu_coords();
        Kdu_coords subs = new Kdu_coords();
        codestream.Get_subsampling(reference_component, ref_subs);
        Kdu_coords min_subs = new Kdu_coords();
        min_subs.Assign(ref_subs);

        for (c = 0; c < channels.Get_num_channels(); c++) {
            codestream.Get_subsampling(channels.Get_source_component(c), subs);
      if (subs.Get_x() < min_subs.Get_x())
                min_subs.Set_x(subs.Get_x());
View Full Code Here

Examples of kdu_jni.Kdu_dims.Assign()

            imageSize.Set_y(imageSize.Get_y());
            imagePosition.Set_x(imagePosition.Get_x() / reduce - (1 / reduce - 1) / 2);
            imagePosition.Set_y(imagePosition.Get_y() / reduce - (1 / reduce - 1) / 2);

            Kdu_dims viewDims = new Kdu_dims();
            viewDims.Assign(imageDimensions);
            viewDims.Access_size().Set_x(imageSize.Get_x());
            viewDims.Access_size().Set_y(imageSize.Get_y());
            compositor.Add_compositing_layer(0, viewDims, viewDims);

      if (params.getRotationDegree() == 90)
View Full Code Here

Examples of ma.glasnost.orika.impl.generator.MultiOccurrenceVariableRef.assign()

                out.append(" // TODO support array");
            } else {
                append(out,
                        format("for (java.util.Iterator orikaIterator = %s.iterator(); orikaIterator.hasNext();) { ", newDest),
                        format("    %s orikaCollectionItem = (%s) orikaIterator.next();", d.elementTypeName(), d.elementTypeName()),
                        inverse.assign(d.owner()),
                        "}");
               
            }
        }
        // End check if source property ! = null
View Full Code Here

Examples of ma.glasnost.orika.impl.generator.VariableRef.assign()

        if (fieldMap.getInverse() != null) {
            VariableRef inverse = new VariableRef(fieldMap.getInverse(), destination);
           
            if (inverse.isCollection()) {
                MultiOccurrenceVariableRef inverseCollection = MultiOccurrenceVariableRef.from(inverse);
                ipStmt += inverse.ifNull() + inverse.assign(inverseCollection.newCollection()) + ";";
                ipStmt += format("%s.add(%s);", inverse, destination.owner());
            } else if (inverse.isArray()) {
                ipStmt += "/* TODO Orika source code does not support Arrays */";
            } else {
                ipStmt += statement(inverse.assign(destination.owner()));
View Full Code Here

Examples of nexj.core.runtime.Instance.assign()

            Instance instance = (Instance)fixupList.get(i);
            Attribute attribute = (Attribute)fixupList.get(i + 1);
            Object value = fixupList.get(i + 2);
            Object pre = fixupList.get(i + 3);

            instance.assign(attribute, value, true);

            if (pre != Undefined.VALUE)
            {
               InvocationContext context = instance.getInvocationContext();
               byte nGenerationSaved = context.getGeneration();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.