DESY ACOP Beans Home

de.desy.acop.displayers.selector
Class SelectorUtilities

java.lang.Object
  extended by de.desy.acop.displayers.selector.SelectorUtilities

public class SelectorUtilities
extends java.lang.Object

SelectorUtilities provides several utility methods used by the SelectorGUI

Version:
$Id: Templates.xml,v 1.10 2004/01/13 16:17:13 jbobnar Exp $
Author:
Jaka Bobnar

Constructor Summary
SelectorUtilities()
           
 
Method Summary
static java.lang.String getExtendedDataString(ConnectionParameters param)
          Returns the extended data, from the DynamicParameters in the ConnetionParameters, as a string which exactly shows the type and the values.
static java.lang.String getInfo(ConnectionParameters param)
          Returns the info about specific connection point.
static int getSequenceLength(ConnectionParameters param)
          Returns the sequence length of a channel array.
static boolean isChannel(ConnectionParameters param)
          Checks if the parameters define a multi-channel array.
static boolean isConnectionParametersValid(ConnectionParameters param)
          Checks if ConnectionParameters are valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorUtilities

public SelectorUtilities()
Method Detail

isChannel

public static boolean isChannel(ConnectionParameters param)
Checks if the parameters define a multi-channel array.

Parameters:
param - remote connection point
Returns:
true if this is a channel array

isConnectionParametersValid

public static boolean isConnectionParametersValid(ConnectionParameters param)
Checks if ConnectionParameters are valid. Parameters are valid if all values are non-null and are not empty strings.

Parameters:
param -
Returns:
true if parameters are valid

getInfo

public static java.lang.String getInfo(ConnectionParameters param)
Returns the info about specific connection point. When requesting the same info for several times in a row, only the first time a remote server is asked. The last info value is always stored for later use or until info for a different parameters is requested.

Parameters:
param -
Returns:
the info

getSequenceLength

public static int getSequenceLength(ConnectionParameters param)
Returns the sequence length of a channel array.

Parameters:
param -
Returns:
the sequence length

getExtendedDataString

public static java.lang.String getExtendedDataString(ConnectionParameters param)
Returns the extended data, from the DynamicParameters in the ConnetionParameters, as a string which exactly shows the type and the values.

Parameters:
param -
Returns:
extended data as String


Copyright © 2010. All Rights Reserved.