Package com.pcmsolutions.device.EMU.E4.sample

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


    }

    public String getSampleName(Integer sample) throws NoSuchSampleException {
        Object sobj = s2sobj.get(sample);
        if (sobj == null)
            throw new NoSuchSampleException(sample);
        return sobj.toString();
    }
View Full Code Here


    public String getSampleNameExtended(SampleContext pc, Integer sample) throws NoSuchSampleException, NoSuchContextException {
        lockSampleWrite(pc, sample);
        try {
            Object sobj = s2sobj.get(sample);
            if (sobj == null)
                throw new NoSuchSampleException(sample);
            if (sobj instanceof UninitSampleObject) {
                sobj = scf.initializeSampleAtIndex(sample, se_handler);
                if (sobj != null)
                    s2sobj.put(sample, sobj);
            }
View Full Code Here

        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

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

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

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

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

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

    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

    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

            }
        } 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

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

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.