Examples of ZExternalDevice


Examples of com.pcmsolutions.system.ZExternalDevice

        if (!(p instanceof SysexTransactionRecord))
            return null;
        for (Iterator i = deviceMarshalls.iterator(); i.hasNext();) {
            try {
                DeviceMarshall o = (DeviceMarshall) i.next();
                ZExternalDevice d = o.tryIdentify(p);
                if (d != null)
                    return d;
            } catch (IllegalArgumentException e) {
                System.out.println(e);
            } catch (Exception e) {
View Full Code Here

Examples of com.pcmsolutions.system.ZExternalDevice

                            case 5:
                                if (st instanceof SmdiTarget)
                                    if (((SmdiTarget) st).isCoupled())
                                        try {
                                            String prefix;
                                            ZExternalDevice d = Zoeos.getInstance().getDeviceManager().getDeviceMatchingIdentityMessageString(((SmdiTarget) st).getCouplingString());
                                            if (d != null)
                                                prefix = d.getName() + "   ";
                                            else
                                                prefix = DeviceNames.getNameForDevice(((SmdiTarget) st).getCouplingString(), "") + "   ";    // getCouplingString() should be toString() of identity message, so this alternative procedure may work

                                            return prefix + "[" + ((SmdiTarget) st).getCouplingString() + " ]";
                                        } catch (SmdiTargetNotCoupledException e) {
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.