Package com.stumbleupon.async

Examples of com.stumbleupon.async.Deferred$Signal


          LOG.warn("Failed pending assignment for: " + name);
          return assignment;
        }
      }
     
      final Deferred d;
      switch (state) {
        case ALLOCATE_UID:
          d = allocateUid();
          break;
        case CREATE_REVERSE_MAPPING:
          d = createReverseMapping(arg);
          break;
        case CREATE_FORWARD_MAPPING:
          d = createForwardMapping(arg);
          break;
        case DONE:
          return done(arg);
        default:
          throw new AssertionError("Should never be here!");
      }
      return d.addBoth(this).addErrback(new ErrBack());
    }
View Full Code Here


    return this.ort.getName();
  }

  public Signal input(final int kanal, final long lange) throws Fehler,
      IOException {
    final Signal signal = new Signal(this.in[kanal].samplerate);
    ComplexD tmp;
    for (int i = 0; i < lange; i++) {
      tmp = new NotComplexD(this.in[kanal].read());
      signal.add(tmp);
    }
    return signal;
  }
View Full Code Here

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.SIGNAL: {
            Signal signal = (Signal) theEObject;
            T result = caseSignal(signal);
            if (result == null)
                result = caseRootElement(signal);
            if (result == null)
                result = caseBaseElement(signal);
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setSignalRef(Signal newSignalRef) {
        Signal oldSignalRef = signalRef;
        signalRef = newSignalRef;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.SIGNAL_EVENT_DEFINITION__SIGNAL_REF, oldSignalRef, signalRef));
    }
View Full Code Here

TOP

Related Classes of com.stumbleupon.async.Deferred$Signal

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.