Package fr.soleil.salsa.entity.impl

Examples of fr.soleil.salsa.entity.impl.Stage


        this.firePropertyChange("id", oldValue, id);
    }

    @Override
    public void setStage(Stage stage) {
        Stage oldValue = this.baseBean.getStage();
        this.baseBean.setStage(stage);
        this.firePropertyChange("stage", oldValue, stage);
    }
View Full Code Here


        }

        if ((sao != null) && (sao.getHooks() != null)) {
            List<IHook> hooks = sao.getHooks();
            for (IHook h : hooks) {
                Stage stage = h.getStage();
                String attributeName = getStageAttributeName(stage);
                if (attributeName != null) {
                    List<String> commands = new ArrayList<String>();
                    if (h.getCommandsList() == null) {
                        continue;
View Full Code Here

    }

    protected void SetHooks(IScanAddOns sao, DeviceProxy scanServerProxy) throws DevFailed {
        Stage[] stages = Stage.values();
        for (int i = 0; i < stages.length; i++) {
            Stage stage = stages[i];
            String attributeName = getStageAttributeName(stage);
            String[] commandsTab = new String[0];
            DeviceAttribute da = new DeviceAttribute(attributeName);
            da.insert(commandsTab);
            scanServerProxy.write_attribute(da);
        }

        if (sao != null && sao.getHooks() != null) {
            List<IHook> hooks = sao.getHooks();
            for (IHook h : hooks) {
                Stage stage = h.getStage();
                String attributeName = getStageAttributeName(stage);
                if (attributeName != null) {
                    List<String> commands = new ArrayList<String>();
                    if (h.getCommandsList() == null) {
                        continue;
View Full Code Here

        this.firePropertyChange("id", oldValue, id);
    }

    @Override
    public void setStage(Stage stage) {
        Stage oldValue = this.baseBean.getStage();
        this.baseBean.setStage(stage);
        this.firePropertyChange("stage", oldValue, stage);
    }
View Full Code Here

        }

        if ((sao != null) && (sao.getHooks() != null)) {
            List<IHook> hooks = sao.getHooks();
            for (IHook h : hooks) {
                Stage stage = h.getStage();
                String attributeName = getStageAttributeName(stage);
                if (attributeName != null) {
                    List<String> commands = new ArrayList<String>();
                    if (h.getCommandsList() == null) {
                        continue;
View Full Code Here

        }

        if (sao != null && sao.getHooks() != null) {
            List<IHook> hooks = sao.getHooks();
            for (IHook h : hooks) {
                Stage stage = h.getStage();
                String attributeName = getStageAttributeName(stage);
                if (attributeName != null) {
                    List<String> commands = new ArrayList<String>();
                    if (h.getCommandsList() == null) {
                        continue;
View Full Code Here

        }

        if ((sao != null) && (sao.getHooks() != null)) {
            List<IHook> hooks = sao.getHooks();
            for (IHook h : hooks) {
                Stage stage = h.getStage();
                String attributeName = getStageAttributeName(stage);
                if (attributeName != null) {
                    List<String> commands = new ArrayList<String>();
                    if (h.getCommandsList() == null) {
                        continue;
View Full Code Here

        }

        if (sao != null && sao.getHooks() != null) {
            List<IHook> hooks = sao.getHooks();
            for (IHook h : hooks) {
                Stage stage = h.getStage();
                String attributeName = getStageAttributeName(stage);
                if (attributeName != null) {
                    List<String> commands = new ArrayList<String>();
                    if (h.getCommandsList() == null) {
                        continue;
View Full Code Here

     */
    private Stage getFirstStageUnreserved() {
        List<Stage> stageReserved = getStageReserved();
        Stage[] stages = Stage.values();
        for (int i = 0; i < stages.length; i++) {
            Stage s = stages[i];
            if (!stageReserved.contains(s)) {
                return s;
            }
        }
        return null;
View Full Code Here

    }

    @Override
    public void notifyNewHookAction() {
        IHook h = new HookModel();
        Stage s = getFirstStageUnreserved();
        h.setStage(s);
        hooks.add(h);
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.impl.Stage

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.