Examples of Bus


Examples of Hack.ComputerParts.Bus

        keyboard.reset();

        ALU alu = new ALU(null);
        alu.reset();

        Bus bus = new Bus(null);
        bus.reset();

        cpu = new CPU(ram, rom, A, D, PC, alu, bus);

        init();
    }
View Full Code Here

Examples of com.goodow.realtime.channel.Bus

  DocumentImpl(final DocumentBridge internalApi, final Handler<Error> errorHandler) {
    model = new ModelImpl(internalApi, this);
    handlerRegs = new Registrations();
    collaborators = Json.createObject();

    Bus bus = internalApi.store.getBus();
    if (errorHandler != null) {
      handlerRegs.wrap(bus.subscribeLocal(
          Constants.Topic.STORE + "/" + internalApi.id + "/" + Constants.Topic.DOCUMENT_ERROR,
          new Handler<Message<Error>>() {
            @Override
            public void handle(Message<Error> message) {
              Platform.scheduler().handle(errorHandler, message.body());
            }
          }));
    }

    handlerRegs.wrap(bus.subscribe(
        Constants.Topic.STORE + "/" + internalApi.id + Constants.Topic.PRESENCE
        + Constants.Topic.WATCH, new Handler<Message<JsonObject>>() {
          @Override
          public void handle(Message<JsonObject> message) {
            JsonObject body = message.body().set(Key.IS_ME, false);
View Full Code Here

Examples of com.loomcom.symon.Bus

    private final Memory ram;
    private       Memory rom;


    public SymonMachine() throws Exception {
        this.bus = new Bus(BUS_BOTTOM, BUS_TOP);
        this.cpu = new Cpu();
        this.ram = new Memory(MEMORY_BASE, MEMORY_BASE + MEMORY_SIZE - 1, false);
        this.pia = new Via6522(PIA_BASE);
        this.acia = new Acia6551(ACIA_BASE);
        this.crtc = new Crtc(CRTC_BASE, ram);
View Full Code Here

Examples of de.mnl.srcpd4cu.srcp.Bus

        try {
            busNumber = Integer.parseInt(busId);
        } catch (NumberFormatException e) {
            throw new CommandExecutionException(Command.ERROR_WRONG_VALUE);
        }
        Bus bus = session.getServer().getBus(busNumber);
        if (bus == null) {
            throw new CommandExecutionException
                (Command.ERROR_UNSUPPORTED_DEVICE);
        }
        return bus;
View Full Code Here

Examples of de.sciss.jcollider.Bus

  public void oscCmd_createNRTFile( RoutedOSCMessage rom )
  {
    final SynthDef[]    defs;
    final Buffer[]      bufsDisk;
    final Synth[]      synthsBufRd;
    final Bus        busInternal, busPh;
    final Span        span        = doc.timeline.getSelectionSpan();
    final AudioTrail    at          = doc.getAudioTrail();
    final long        nrtPlayOffset    = span.start;
    final Span[]      bufSpans      = new Span[ 1 ];
    final Group        nrtGrpRoot, nrtGrpInput;
    final Synth        synthPhasor;
    final float        realRate;
    final float        interpolation;
    final double      nrtServerRate;
    final float        rate        = 1.0f;
    Server          nrtServer      = null;
    NRTFile          f          = null;
    int            argIdx        = 1;
    int            audioBusOffset, bufferOffset; //, controlBusOffset;
    OSCBundle        bndl;
    double          time        = 0.0;
    boolean          even;
    int            nrtClock;
    long          pos          = nrtPlayOffset;
   
    if( ct == null ) {
//      rom.replyFailed( rom, new IOException( "No routing context" ));
      try {
        rom.replyFailed( 1 );
      }
      catch( IOException e11 ) {
        OSCRoot.failed( rom, e11 );
      }
    }
 
    try {
      f        = NRTFile.openAsWrite( new File( rom.msg.getArg( argIdx ).toString() ));
      argIdx++;
      audioBusOffset  = ((Number) rom.msg.getArg( argIdx )).intValue();
      argIdx++;
//      controlBusOffset= ((Number) rom.msg.getArg( argIdx )).intValue();
      argIdx++;
      bufferOffset  = ((Number) rom.msg.getArg( argIdx )).intValue();
      argIdx++;
      nrtServerRate    = ((Number) rom.msg.getArg( argIdx )).doubleValue();
     
      nrtServer      = new Server( "nrt" );
     
      f.write( SuperColliderClient.getInstance().loadDefsMsg() );
     
      defs      = createInputDefs( ct.chanMaps ); // ct.numInputChannels
      if( defs != null ) {
        for( int i = 0; i < defs.length; i++ ) {
          f.write( defs[ i ].recvMsg() );
        }
      }

//      sourceRate      = doc.timeline.getRate();
//      serverRate      = server.getSampleRate();
      srcFactor      = sourceRate / nrtServerRate;
      realRate      = (float) (rate * srcFactor);
      interpolation    = realRate == 1.0f ? 1f : 3f;
   
      nrtGrpRoot        = Group.basicNew( nrtServer );
      f.write( nrtGrpRoot.addToHeadMsg( nrtServer.getDefaultGroup() ));
      nrtGrpInput      = Group.basicNew( nrtServer );
      f.write( nrtGrpInput.addToTailMsg( nrtGrpRoot ));

      synthsBufRd        = new Synth[ ct.numFiles ];
      busInternal        = new Bus( nrtServer, kAudioRate, audioBusOffset, ct.numInChans );
      audioBusOffset       += busInternal.getNumChannels();
      busPh        = new Bus( nrtServer, kAudioRate, audioBusOffset );
      audioBusOffset       += busPh.getNumChannels();
      bufsDisk        = new Buffer[ ct.numFiles ];
      for( int i = 0; i < ct.numFiles; i++ ) {
        bufsDisk[ i ]    = new Buffer( nrtServer, DISKBUF_SIZE, ct.chanMaps[ i ].length, bufferOffset++ );
        f.write( bufsDisk[ i ].allocMsg() );
      }

      for( int i = 0; i < ct.numFiles; i++ ) {
        synthsBufRd[ i = Synth.basicNew( "eisk-input" + ct.chanMaps[ i ].length, nrtServer );
      }
      synthPhasor  = Synth.basicNew( "eisk-phasor", nrtServer );

      for( nrtClock = 0, even = true;; nrtClock++, even = !even ) {
        if( even ) {
          pos = nrtClock * DISKBUF_SIZE_HM - DISKBUF_PAD + nrtPlayOffset;
        } else {
          pos = nrtClock * DISKBUF_SIZE_HM + nrtPlayOffset;
        }
        if( pos >= span.stop ) break;
        f.setTime( time );
//System.err.println( "clock = "+clock+"; pos = "+pos+"; time = "+time );
        bndl        = new OSCBundle( time );
//        if( pos >= DISKBUF_PAD ) {
        if( pos < 0 ) {
          for( int i = 0; i < bufsDisk.length; i++ ) {
            bndl.addPacket( bufsDisk[ i ].fillMsg( 0, DISKBUF_PAD * bufsDisk[ i ].getNumChannels(), 0.0f ));
          }
          pos += DISKBUF_PAD;
        }
//          bufSpans[ 0 ] = new Span( pos - DISKBUF_PAD, pos - DISKBUF_PAD + DISKBUF_SIZE_H );
        bufSpans[ 0 ] = new Span( pos, pos + DISKBUF_SIZE_H );
        at.addBufferReadMessages( bndl, bufSpans, bufsDisk, even ? 0 : DISKBUF_SIZE_H );
        f.write( bndl );
       
        if( nrtClock == 0 ) {
          for( int i = 0, off = 0; i < ct.numFiles; i++ ) {
            f.write( synthsBufRd[ i ].newMsg( nrtGrpInput, new String[] {
              "i_aInBf",                 "i_aOtBs",                    "i_aPhBs",            "i_intrp" }, new float[] {
              bufsDisk[ i ].getBufNum(), busInternal.getIndex() + off, busPh.getIndex(), interpolation }
            ));
            off += ct.chanMaps[ i ].length;
          }

          if( ct.numFiles > 0 ) {
View Full Code Here

Examples of net.sf.laja.example.car.behaviour.Bus

        // Use the builder to create the car.
        Car saab = Car.build().withLengthInCentimeters(434).withName("Saab").withColor("Blue").withOwner(
                Owner.build().withSsn("197707071122").withName("Bull")).asCar();

        // Name and lengthInCentimeters are mandatory, weightInKilograms is optional.
        Bus bus = Bus.name("Some").lengthInCentimeters(5100).withWeightInKilograms(3200).asBus();

        System.out.println(volvo);
        System.out.println(saab);
        System.out.println(bus);
        System.out.println("Volvo is big: " + volvo.isBig());
View Full Code Here

Examples of org.apache.cxf.Bus

      try {
        SpringBusFactory bf = new SpringBusFactory();
        URL busFile = SecureServiceTestHarnessImpl.class.getResource("/wssec.xml");

        Bus bus = bf.createBus(busFile.toString());
        bf.setThreadDefaultBus(bus);

        QName portName=new QName("http://www.jboss.org/bpel/examples/wsdl", "SecureHelloPort");
       
        URL wsdlURL = new URL("http://127.0.0.1:8080/Quickstart_bpel_secure_serviceWS?wsdl");
View Full Code Here

Examples of org.apache.cxf.Bus

            System.exit(2);
        }
     
        SpringBusFactory bf = new SpringBusFactory();
        URL busFile = ClassLoader.getSystemResource("wssec.xml");
        Bus bus = bf.createBus(busFile.toString());
        bf.setDefaultBus(bus);
       
        QName portName=new QName("http://www.jboss.org/bpel/examples/wsdl", "SecureHelloPort");
       
       
View Full Code Here

Examples of org.apache.cxf.Bus

      URL busFile = urlcl.getResource(filename);
     
      log.debug("Web Stack initialization file: name="+filename+" file="+busFile);
     
      if (busFile != null) {
        Bus bus = bf.createBus(busFile.toString());
        bf.setThreadDefaultBus(bus);
       
        log.debug("Set thread default bus="+bus);
      }
           
View Full Code Here

Examples of org.apache.cxf.Bus

     
      if(url == null) {
        throw new ResourceException("SalesForce URL is not specified, please provide a valid URL"); //$NON-NLS-1$
      }

      Bus bus = BusFactory.getThreadDefaultBus();
      BusFactory.setThreadDefaultBus(mcf.getBus());
      try {
        sfService = new SforceService();
        sfSoap = sfService.getSoap();
        ((BindingProvider)sfSoap).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url.toExternalForm());
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.