Package fr.soleil.salsa.entity

Examples of fr.soleil.salsa.entity.ScanState


     * Reads the state of the server and returns true if a scan is running.
     *
     * @return
     */
    protected ScanState readScanState() {
        ScanState newState;
        String scanServerName = ModelPreferences.getInstance().getScanServer();
        if (scanServerName != null && !"".equals(scanServerName.trim())) {
            try {
                newState = ScanApi.getScanState(scanServerName);
                inError = false;
View Full Code Here


     * Called at regular intervals by PeriodicRefreshUpdater so that the controller updates the
     * state of the read / resume buttons.
     */
    @Override
    public void refresh() {
        ScanState newState = readScanState();
        if (newState != state) {
            state = newState;
            updateView();
        }
    }
View Full Code Here

     * @return
     * @throws SalsaDeviceException
     */
    public ScanState getScanState(String scanServerName) throws SalsaDeviceException {
        DeviceProxy scanServerProxy;
        ScanState state;
        scanServerProxy = getScanServerProxy(scanServerName);
        try {
            DeviceAttribute stateAttribute = scanServerProxy.read_attribute("State");
            String stateString = AttributeHelper.extractToString(stateAttribute);
            if ("ON".equals(stateString)) {
View Full Code Here

    }

    @Override
    public void refresh() {
        fireDAOChanged();
        ScanState newState = readScanState();

        if (newState != state) {
            state = newState;
            if (state == ScanState.STOPPED) {
                fireScanStateChanged();
View Full Code Here

     * Reads the state of the server and returns true if a scan is running.
     *
     * @return a {@link ScanState}
     */
    protected ScanState readScanState() {
        ScanState newState;
        String scanServerName = getScanServer();
        if (scanServerName != null && !"".equals(scanServerName.trim())) {
            try {
                newState = ScanApi.getScanState(scanServerName);
                inError = false;
View Full Code Here

     * @param scanServerName
     * @return
     * @throws SalsaDeviceException
     */
    public ScanState getScanState(String scanServerName) throws SalsaDeviceException {
        ScanState state = ScanState.STOPPED;
        if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
            try {
                DeviceProxy scanServerProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (scanServerProxy != null) {
                    DevState devstate = scanServerProxy.state();
View Full Code Here

     * @param scanServerName
     * @return
     * @throws SalsaDeviceException
     */
    public ScanState getScanState(String scanServerName) throws SalsaDeviceException {
        ScanState state;
        try {
            TangoAttribute stateAttribute = new TangoAttribute(scanServerName + "/State");
            String stateString = stateAttribute.read(String.class);
            if ("ON".equals(stateString)) {
                state = ScanState.STOPPED;
View Full Code Here

    }

    @Override
    public void refresh() {
        fireDAOChanged();
        ScanState newState = readScanState();

        if (newState != state) {
            state = newState;
            if (state == ScanState.STOPPED) {
                fireScanStateChanged();
View Full Code Here

     * Reads the state of the server and returns true if a scan is running.
     *
     * @return a {@link ScanState}
     */
    protected ScanState readScanState() {
        ScanState newState;
        String scanServerName = ModelPreferences.getInstance().getScanServer();
        if (scanServerName != null && !"".equals(scanServerName.trim())) {
            try {
                newState = ScanApi.getScanState(scanServerName);
                inError = false;
View Full Code Here

     * @param scanServerName
     * @return
     * @throws SalsaDeviceException
     */
    public ScanState getScanState(String scanServerName) throws SalsaDeviceException {
        ScanState state = ScanState.STOPPED;

        try {
            DeviceProxy scanServerProxy = ScanServerManager.getScanServerProxy(scanServerName);
            if (scanServerProxy != null) {
                DevState devstate = scanServerProxy.state();
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.ScanState

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.