Examples of NOOP


Examples of org.waveprotocol.wave.model.operation.wave.NoOp

   * @return deserialized wavelet operation
   */
  public static WaveletOperation deserialize(ProtocolWaveletOperation protobufOp,
      WaveletOperationContext ctx) {
    if (protobufOp.hasNoOp()) {
      return new NoOp(ctx);
    } else if (protobufOp.hasAddParticipant()) {
      return new AddParticipant(ctx, new ParticipantId(protobufOp.getAddParticipant()));
    } else if (protobufOp.hasRemoveParticipant()) {
      return new RemoveParticipant(ctx, new ParticipantId(protobufOp.getRemoveParticipant()));
    } else if (protobufOp.hasMutateDocument()) {
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.wave.NoOp

    return makeTransformedDelta(0L, HashedVersion.unsigned(initialVersion + 1), 1);
  }

  /** Create a NoOp operation. */
  public NoOp noOp() {
    return new NoOp(new WaveletOperationContext(author, 0L, 1L));
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.wave.NoOp

  public WaveletDelta makeNoOpDelta(HashedVersion targetVersion, long timestamp, int numOps) {
    List<WaveletOperation> ops = CollectionUtils.newArrayList();
    WaveletOperationContext context =
        new WaveletOperationContext(author, Constants.NO_TIMESTAMP, 1);
    for (int i = 0; i < numOps; ++i) {
      ops.add(new NoOp(context));
    }
    return new WaveletDelta(author, targetVersion, ops);
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.wave.NoOp

  public static WaveletOperation deserializeWaveletOperation(DBObject dbObject,
      WaveletOperationContext context) throws PersistenceException {
    String type = (String) dbObject.get(FIELD_TYPE);
    if (type.equals(WAVELET_OP_NOOP)) {
      return new NoOp(context);
    } else if (type.equals(WAVELET_OP_ADD_PARTICIPANT)) {
      return new AddParticipant(context,
          deserializeParicipantId((DBObject) dbObject.get(FIELD_PARTICIPANT)));
    } else if (type.equals(WAVELET_OP_REMOVE_PARTICIPANT)) {
      return new RemoveParticipant(context,
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.wave.NoOp

   * @return deserialized wavelet operation
   */
  public static WaveletOperation deserialize(ProtocolWaveletOperation protobufOp,
      WaveletOperationContext context) {
    if (protobufOp.hasNoOp()) {
      return new NoOp(context);
    } else if (protobufOp.hasAddParticipant()) {
      return new AddParticipant(context, new ParticipantId(protobufOp.getAddParticipant()));
    } else if (protobufOp.hasRemoveParticipant()) {
      return new RemoveParticipant(context, new ParticipantId(protobufOp.getRemoveParticipant()));
    } else if (protobufOp.hasMutateDocument()) {
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.wave.NoOp

  private static WaveletOperationContext getContext(String author, long timestampMillis) {
    return new WaveletOperationContext(ParticipantId.ofUnsafe(author), timestampMillis, 1);
  }

  private static WaveletOperation newNoOp(String author, long timestampMillis) {
    return new NoOp(getContext(author, timestampMillis));
  }
View Full Code Here

Examples of powercrystals.minefactoryreloaded.circuits.Noop

    _buffers[14] = new int[1];
   
    // init circuits
    for(int i = 0; i < _circuits.length; i++)
    {
      initCircuit(i, new Noop());
    }
   
    //init constants
    for(int i = 0; i < 256; i++)
    {
View Full Code Here

Examples of powercrystals.minefactoryreloaded.circuits.Noop

      return (IRedNetLogicCircuit) Class.forName(className).newInstance();
    }
    catch(Exception e)
    {
      e.printStackTrace();
      return new Noop();
    }
  }
View Full Code Here

Examples of powercrystals.minefactoryreloaded.circuits.Noop

      }
    }
    updateUpgradeLevels();
    for(int i = 0; i < _circuits.length; i++)
    {
      initCircuit(i, new Noop());
      sendCircuitDefinition(i);
    }
    worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
  }
View Full Code Here

Examples of powercrystals.minefactoryreloaded.circuits.Noop

    // finally, init any new circuits
    for(int i = 0; i < _circuits.length; i++)
    {
      if(_circuits[i] == null)
      {
        initCircuit(i, new Noop());
      }
    }
  }
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.