Examples of ScanState


Examples of fr.soleil.salsa.entity.ScanState

     * @param scanServerName
     * @return
     * @throws SalsaDeviceException
     */
    public ScanState getScanState(String scanServerName) throws SalsaDeviceException {
        ScanState state = null;
        DeviceProxy scanServerProxy = TangoDeviceHelper.getDeviceProxy(scanServerName, false);
        if (scanServerProxy != null) {
            try {
                // Time out
                scanServerProxy.set_timeout_millis(10000);
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * @see fr.soleil.salsa.client.view.tool.IPeridodicRefresh#doRefresh()
     */
    @Override
    public void refresh() {
        fireDAOChanged();
        ScanState newState = readScanState();

        if (newState != state) {
            state = newState;
            if (state == ScanState.STOPPED) {

View Full Code Here

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

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

Examples of fr.soleil.salsa.entity.ScanState

     * 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

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(String stringState) {
        ScanState newState = ScanState.STOPPED;
        if (stringState != null) {
            if (stringState.equalsIgnoreCase(StateUtilities.getNameForState(DevState.RUNNING))
                    || stringState
                            .equalsIgnoreCase(StateUtilities.getNameForState(DevState.MOVING))) {
                newState = ScanState.RUNNING;
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

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

        String stateString = DeviceConnectionManager.getDeviceState(scanServerName);
        if (StateUtilities.getNameForState(DevState.ON).equals(stateString)) {
            state = ScanState.STOPPED;
        }
View Full Code Here

Examples of fr.soleil.salsa.entity.ScanState

     * @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

Examples of fr.soleil.salsa.entity.ScanState

     * @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

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