Examples of Device


Examples of com.limelight.input.Device

  public void removeListener(DeviceListener listener) {
    listeners.remove(listener);
  }
 
  public void deviceAttached(int deviceId, int numButtons, int numAxes) {
    devices.put(deviceId, new Device(deviceId, numButtons, numAxes));
  }
View Full Code Here

Examples of com.loomcom.symon.devices.Device

       
        return true;
    }

    public int read(int address) throws MemoryAccessException {
        Device d = deviceAddressArray[address - this.startAddress];
        if(d != null) {
            MemoryRange range = d.getMemoryRange();
            int devAddr = address - range.startAddress();
            return d.read(devAddr) & 0xff;
        }
       
        throw new MemoryAccessException("Bus read failed. No device at address " + String.format("$%04X", address));
    }
View Full Code Here

Examples of com.st.greennet.service.Device

            }
          }
         
          synchronized (greennetSwitchs) {
            for(Iterator it = greennetSwitchs.iterator(); it.hasNext();) {
              Device greennetSwitch = (Device) it.next();
              GreenNetSwitchThread gst = new GreenNetSwitchThread(greennetSwitch, true);
              gst.start();
            }
          }
         

        } else {
          System.out
              .println("event is not treated as it has been treated previously");
          return;
        }

      } else if (new Long(4196).equals(zoneStatus)) {
        // reset alarm
        System.out.println("receive 4196");
        hasToBeTreated = true;
        for (Enumeration e = pumps.elements(); e.hasMoreElements();) {
          PumpThread pt = new PumpThread(
              (EndPointService) e.nextElement(), false);
          pt.start();
        }
       
        // stop breathing
        synchronized (greennetSwitchs) {
          for(Iterator it = greennetSwitchs.iterator(); it.hasNext();) {
            Device greennetSwitch = (Device) it.next();
            GreenNetSwitchThread gst = new GreenNetSwitchThread(greennetSwitch, false);
            gst.start();
          }
        }
View Full Code Here

Examples of com.volantis.mcs.devices.Device

    }

    // javadoc inherited
    public Device getDevice(String deviceName)
            throws DeviceRepositoryException {
        Device device = null;

        if (deviceName != null) {
            try {
                RepositoryConnection connection = repository.connect();
                try {
View Full Code Here

Examples of de.mnl.srcpd4cu.srcp.Device

                = CommandUtil.findDeviceGroup(session, args);
            if (!deviceGroup.getSupportedDeviceTypes()
                .contains(GettableDevice.class)) {
                throw new CommandExecutionException(ERROR_FORBIDDEN);
            }
            Device device;
            if (deviceGroup instanceof SingleDeviceGroup) {
                device = ((SingleDeviceGroup)deviceGroup).getDevice();
            } else {
                long address = CommandUtil.consumeNumber(args);
                device = deviceGroup.getDevice(address);
                if (device == null) {
                    if (!deviceGroup.allowImplicitCreation()) {
                        throw new CommandExecutionException
                            (Command.ERROR_UNSUPPORTED_DEVICE);
                    }
                    device = deviceGroup.createDevice(address);
                    if (!(device instanceof InitializableDevice)
                        || !(device instanceof GettableDevice)) {
                        throw new CommandExecutionException
                            (Command.ERROR_UNSUPPORTED_DEVICE);
                    }
                    ((InitializableDevice)device).init
                        (session, deviceGroup,
                         ((InitializableDevice)device).getDescription());
                    device.addStateChangeListener(session.getServer());
                }
            }
            if (!(device instanceof GettableDevice)) {
                throw new CommandExecutionException
                    (ERROR_UNSUPPORTED_OPERATION);
            }
            String info;
            if (args.size() > 0) {
                if (device instanceof AddressableStateProvider) {
                    synchronized (device) {
                        info = ((AddressableStateProvider)device)
                            .getState(session, args);
                    }
                } else {
                    throw new CommandExecutionException(ERROR_LIST_TOO_LONG);
                }
            } else {
                synchronized (device) {
                    String[] states
                        = ((GettableDevice)device).getState(session);
                    if (states.length != 1) {
                        throw new CommandExecutionException
                            (Command.ERROR_UNSUPPORTED_OPERATION);
                    }
                    info = states[0];
                }
            }
            String details = "INFO "
                + device.getDeviceGroup().getBus().getNumber()
                + " " + device.getDeviceGroup().getName();
            if (device instanceof AddressableDevice) {
                details += " " + ((AddressableDevice)device).getAddress();
            }
            if (info != null && info.length() > 0) {
                details += " " + info;
View Full Code Here

Examples of edu.byu.ece.rapidSmith.device.Device

  public static void main(String[] args){
    MessageGenerator.printHeader(" RapidSmith Device Browser");   
    if(args.length != 1){
      MessageGenerator.briefMessageAndExit("USAGE: <device part name, ex: xc4vfx12ff668 >");
    }
    Device dev = (Device) FileTools.loadDevice(args[0]);
    WireEnumerator we = FileTools.loadWireEnumerator(args[0]);   
   
    run(dev, we);
  }
View Full Code Here

Examples of es.unizar.tecnodiscap.osgi4ami.device.Device

  public void driverNodeEvent(int EventCode, Object arg1) {
    // TODO Auto-generated method stub
   
   
    Device device= (Device)arg1;
   
    switch (EventCode) {
    case DriverListener.NODE_ADDED:
      System.out.println(device.getClass().toString());
      if (device instanceof Brazo) {
        // TODO dar de alta el brazo

      } else if (device instanceof UnizarAccelerationSensor) {
        if (this.remoteControl == null) {
View Full Code Here

Examples of fr.esrf.tangoatk.core.Device

            return;
        }
        BindingTango.addConnectionListener(listener);
        if (m_DeviceList.containsKey(proxyName.toLowerCase())) {
            // System.out.println("Device " + proxyName + "already exist in list");
            Device device = m_DeviceList.get(proxyName.toLowerCase());
            notifyDeviceIsConnected(device);
            return;
        }
        DeviceConnectionThread.addDevice(proxyName);
    }
View Full Code Here

Examples of net.floodlightcontroller.devicemanager.internal.Device

                return devices.hasNext();
            }

            @Override
            public Entity[] next() {
                Device d = (Device)devices.next();
                return d.getEntities();
            }

            @Override
            public void remove() {
                throw new UnsupportedOperationException();
View Full Code Here

Examples of net.ioncannon.ap4j.model.Device

    ServiceInfo serviceInfo = serviceEvent.getInfo();
    if(serviceInfo == null || serviceInfo.getInetAddress() == null)
    {
      serviceInfo = serviceEvent.getDNS().getServiceInfo(serviceEvent.getType(), serviceEvent.getName(), 2000);
    }
    JettyCommandService.addDevice(new Device(serviceEvent.getName(), serviceInfo.getInetAddress(), serviceInfo.getPort()));
  }
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.