Examples of NoSuchSampleException


Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

        lockSampleWrite(sc, sample);
        try {
            Object pobj = s2sobj.get(sample);
            UninitSampleObject u_pobj;
            if (pobj == null)
                throw new NoSuchSampleException(sample);
            if (pobj instanceof UninitSampleObject) {
                u_pobj = ((UninitSampleObject) pobj);
                if (u_pobj.getState() == RemoteObjectStates.STATE_PENDING) {
                    name = scf.initializeSampleNameAtIndex(sample, se_handler);
                    if (name == null)
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

        RWLock pLock = (RWLock) s2sl.get(sample);

        if (pLock != null)
            pLock.read();
        else
            throw new NoSuchSampleException(sample);
    }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

        RWLock pLock = (RWLock) s2sl.get(sample);
        if (pLock != null) {
            return pLock.tryRead();
        } else
            throw new NoSuchSampleException(sample);
    }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

        else {
            RWLock pLock = (RWLock) s2sl.get(sample);
            if (pLock != null)
                pLock.write();
            else
                throw new NoSuchSampleException(sample);
        }
    }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

        else {
            RWLock pLock = (RWLock) s2sl.get(sample);
            if (pLock != null) {
                return pLock.tryWrite();
            } else
                throw new NoSuchSampleException(sample);
        }
    }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

    public SampleObject[] getSampleRW(SampleContext sc, Integer readSample, Integer writeSample) throws NoSuchSampleException, SampleEmptyException, NoSuchContextException {
        if (!assertContext(sc))
            throw new NoSuchContextException();

        if (readSample == null || writeSample == null)
            throw new NoSuchSampleException(IntPool.get(Integer.MIN_VALUE));

        SampleObject[] sobjs = new SampleObject[2];

        if (readSample.intValue() < writeSample.intValue()) {
            sobjs[0] = getSampleRead(sc, readSample);
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

    public Object[] getSampleRC(SampleContext sc, Integer readSample, Integer copySample) throws NoSuchSampleException, SampleEmptyException, NoSuchContextException {
        if (!assertContext(sc))
            throw new NoSuchContextException();

        if (readSample == null || copySample == null)
            throw new NoSuchSampleException(IntPool.get(Integer.MIN_VALUE));

        Object[] sobjs = new Object[2];

        // access them consecutively to prevent race conditions
        if (readSample.intValue() < copySample.intValue()) {
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

            }
        } else
            return (SampleObject) r_pobj;

        if (SwingUtilities.isEventDispatchThread())
            throw new NoSuchSampleException(sample);
        else
            while (rt.isAlive())
                try {
                    rt.join();
                } catch (InterruptedException e) {
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

                if (sample.intValue() > DeviceContext.MAX_USER_SAMPLE)
                    return SUMMARY_SAMPLE_ROM;
                else
                    return SUMMARY_SAMPLE_NOT_INITIALIZED;
            } else if (sobj == null)
                throw new NoSuchSampleException(sample);

            if (sobj instanceof SampleObject)
                return ((SampleObject) sobj).getSummary();

            return SUMMARY_ERROR;
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

        if (s2sc.get(sample) != sc || sc == null)
            throw new NoSuchContextException();

        Object sobj = s2sobj.get(sample);
        if (sobj == null)
            throw new NoSuchSampleException(sample);
        if (sobj instanceof UninitSampleObject)
            return ((UninitSampleObject) sobj).getState();
        if (sobj instanceof EmptySample)
            return RemoteObjectStates.STATE_EMPTY;
        return RemoteObjectStates.STATE_INITIALIZED;
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.