Package com.pcmsolutions.device.EMU.E4.preset

Examples of com.pcmsolutions.device.EMU.E4.preset.NoSuchContextException


            throw new NoSuchSampleException(sample);
    }

    public void lockSampleWrite(SampleContext sc, Integer sample) throws NoSuchSampleException, NoSuchContextException {
        if (sc == null)
            throw new NoSuchContextException();

        if (s2sc.get(sample) != sc)
            lockSampleWrite(getParent(sc), sample);
        else {
            RWLock pLock = (RWLock) s2sl.get(sample);
View Full Code Here


        }
    }

    public boolean tryLockSampleWrite(SampleContext sc, Integer sample) throws NoSuchSampleException, NoSuchContextException {
        if (sc == null)
            throw new NoSuchContextException();

        if (s2sc.get(sample) != sc)
            return tryLockSampleWrite(getParent(sc), sample);
        else {
            RWLock pLock = (RWLock) s2sl.get(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];
View Full Code Here

        return sobjs;
    }

    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];
View Full Code Here

        return sobj;
    }

    public int getSampleState(SampleContext sc, Integer sample) throws NoSuchSampleException, NoSuchContextException {
        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)
View Full Code Here

        return scf.getSampleInitializationStatus(sample);
    }

    public boolean isSampleWriteLocked(SampleContext sc, Integer sample) throws NoSuchSampleException, NoSuchContextException {
        if (s2sc.get(sample) != sc || sc == null)
            throw new NoSuchContextException();

        RWLock pLock = (RWLock) s2sl.get(sample);
        if (pLock == null)
            throw new NoSuchSampleException(sample);
        return pLock.isWriteLocked();
View Full Code Here

        ArrayList found = new ArrayList();
        Integer s;
        //int count = reqd.intValue();
        TreeMap m = (TreeMap) sc2s.get(sc);
        if (m == null)
            throw new NoSuchContextException();
        TreeMap pClone = (TreeMap) m.clone();

        for (Iterator i = pClone.keySet().iterator(); i.hasNext();) {
            s = (Integer) i.next();
            try {
View Full Code Here

        }
    }

    public void expandContext(SampleContext dpc, Integer[] samples) throws NoSuchContextException, NoSuchSampleException {
        if (dpc == this)
            throw new NoSuchContextException("Can't expand self");
        if (!(dpc instanceof Impl_SampleContext))
            throw new NoSuchContextException("Destination context is not compatible");
        Impl_SampleContext real_dpc = (Impl_SampleContext) dpc;
        removeFromContext(samples);
        real_dpc.addToContext(samples);
    }
View Full Code Here

    }

    public List expandContextWithEmptySamples(SampleContext dpc, Integer reqd) throws NoSuchContextException {
        List removed;
        if (dpc == this)
            throw new NoSuchContextException();
        SDBWriter writer = sampleDatabaseProxy.getDBWrite();
        try {
            removed = writer.expandContextWithEmptySamples(this, dpc, reqd);
        } finally {
            writer.release();
View Full Code Here

        generatePanels();

        if (voice.getPreset().getIcon() instanceof PresetIcon)
            icon = new VoiceEditingIcon((PresetIcon) voice.getPreset().getIcon());

        pla = new PresetListenerAdapter() {
            public void presetNameChanged(PresetNameChangeEvent ev) {
            }

            public void presetRefreshed(PresetRefreshEvent ev) {
                revalidate();
View Full Code Here

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.preset.NoSuchContextException

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.