vib.servers
Class ADScanMulti

java.lang.Object
  |
  +--vib.servers.SimpleDataSource
        |
        +--vib.servers.DaliDataSourceSuper
              |
              +--vib.servers.ADScanMulti
All Implemented Interfaces:
vib.servers.DataSourceInterface, java.util.EventListener, java.io.Serializable, vib.utils.StaticMethodEventListener, vib.utils.Timeable, vib.utils.ValueChangedListener, vib.utils.VIBEventProducer

public class ADScanMulti
extends DaliDataSourceSuper

ADScanMulti class that provides A/D Scan Datat source. Does not run on trigger.

See Also:
Serialized Form

Field Summary
 boolean authen
           
 int count
           
 int gain
           
 int hertz
           
 int high_channel
           
 java.lang.String label
           
 int low_channel
           
 java.lang.String Password
           
 java.lang.String polarity
           
 int range
           
 java.lang.String ServerURL
           
 java.lang.String Username
           
 
Fields inherited from class vib.servers.SimpleDataSource
alwaysSend, authGroups, autoKill, autoSuspend, colorHi, colorHiHi, colorLo, colorLoLo, currentColor, currentValue, customTimer, deadband, dontConnect, groups, initialValue, interlock, lastSentValue, myListeners, myRequiresSyncWrite, mySyncWriteTimeout, priority, requiresSyncWrite, sendColors, sendIfQualityIsBetterThan, sendIfQualityIsBetterThen, sharedTimer, started, suspended, syncTime, syncUserName, syncWriteTimeout, tagAgent, theEventHandler, theTagController, timebase, useInitialValue, valueHi, valueHiHi, valueLo, valueLoLo
 
Fields inherited from interface vib.servers.DataSourceInterface
INITIALVALUE, REQUESTCURRENTVALUE, REQUESTHISTORICAL
 
Fields inherited from interface vib.utils.VIBEventProducer
ACTIVEGRAPHIC_STOPPED, CLIENT_ATTACHED, CLIENT_REMOVED, SERVER_DISCONNECTING, SERVER_RESUMED, SERVER_STOPPED, SERVER_SUSPENDED, TAG_NAME_CREATED, TAG_NAME_UPDATED, UPDATE_FAILED
 
Constructor Summary
ADScanMulti()
          ADScanMulti Contructor.
 
Method Summary
 boolean getAuthen()
          Gets value of whether Authentication is used
 int getCount()
          Get current value of total number of A/D scans to obtain
 int getGain()
          Gets the current A/D gain value
 int getHertz()
          Gets the current rate
 int getHighChannel()
          Gets the current high channel value
 java.lang.String getLabel()
          This will return the current label without any characters switched.
 int getLowChannel()
          Gets the current low channel value
 java.lang.String getPassword()
          Gets the current password
 java.lang.String getPolarity()
          Gets current A/D polarity value
 int getRange()
          Gets the current range
 java.lang.String getServerURL()
          Get current Dali Server URL
 java.lang.String getUsername()
          Gets the current username
 void refreshCurrentValue()
          refreshCurrentValue performs a Dali Java call of ADScanMulti.
 void setAuthen(boolean newAuthen)
          Sets true or false as to whether to use Authentication
 void setCount(int newCount)
          Set value of total number of A/D Scans to obtain
 void setGain(int newGain)
          Sets A/D gain value of the PC104 board
 void setHertz(int newHertz)
          Sets the rate of the A/D Scans
 void setHighChannel(int newChannel)
          Sets the high channel value
 void setLabel(java.lang.String newValue)
          This will update (change) the string being displayed as a marquee output.
 void setLowChannel(int newChannel)
          Sets the low channel value
 void setOption(java.lang.String newValue)
          This method is called for every single entry in the parameter list.
 void setPassword(java.lang.String newPassword)
          Sets the password for Dali Server Authentication
 void setPolarity(java.lang.String newPolarity)
          Sets A/D polarity of the PC104 board
 void setRange(int newRange)
          Sets A/D range of the PC104 board
 void setServerURL(java.lang.String newURL)
          Sets the Dali Server URL.
 void setUsername(java.lang.String newUsername)
          Sets the Username for Dali Server Authentication
 
Methods inherited from class vib.servers.SimpleDataSource
addListener, addListenerForId, addValueChangedListener, authenticatedClientRequest, authenticatedValueChanged, clientRequest, finalize, forceUpdate, getAlwaysSend, getBoolValue, getByteValue, getCharValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getCurrentColor, getCustomTimer, getDataSource, getDeadband, getDoubleValue, getFloatValue, getGroups, getInitialValue, getInterlock, getIntValue, getLongValue, getPriority, getRequiresSyncWrite, getSendColors, getSendIfQualityIsBetterThan, getSerializableObject, getServerList, getShortValue, getStaticLocationFor, getStringValue, getSyncWriteTimeout, getTagAgent, getTagName, getTimebase, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, getValueObject, getWritableDataSource, isAutoSuspend, isSuspended, isUseInitialValue, passesDeadband, registerTagName, removeListener, removeListenerForId, removeValueChangedListener, requestSyncWrite, resume, setAlwaysSend, setAutoSuspend, setBoolValue, setBoolValueInternal, setByteValue, setByteValueInternal, setCharValue, setCharValueInternal, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setCustomTimer, setDeadband, setDoubleValue, setDoubleValueInternal, setFloatValue, setFloatValueInternal, setGroups, setInitialValue, setInitialValueObject, setInterlock, setIntValue, setIntValueInternal, setLongValue, setLongValueInternal, setParameters, setPriority, setRequiresSyncWrite, setSendColors, setSendIfQualityIsBetterThan, setSerializableObject, setSerializableObjectInternal, setServerList, setShortValue, setShortValueInternal, setStringValue, setStringValueInternal, setSuspended, setSuspendedInternal, setSyncWriteTimeout, setTagAgent, setTagName, setTimebase, setUseInitialValue, setValue, setValueHi, setValueHiHi, setValueLo, setValueLoLo, setValueObject, setValueObjectInternal, stop, suspend, tick, toString, unregisterTagName, updateColor, updateCurrentColor, updateListener, updateListeners, valueChanged, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

public java.lang.String label

ServerURL

public java.lang.String ServerURL

Username

public java.lang.String Username

Password

public java.lang.String Password

authen

public boolean authen

low_channel

public int low_channel

high_channel

public int high_channel

count

public int count

hertz

public int hertz

range

public int range

gain

public int gain

polarity

public java.lang.String polarity
Constructor Detail

ADScanMulti

public ADScanMulti()
ADScanMulti Contructor. Sets channel, range, gain, etc to defaults.
Method Detail

refreshCurrentValue

public void refreshCurrentValue()
refreshCurrentValue performs a Dali Java call of ADScanMulti. Gets an update of the A/D value. Stores values in an array.
Overrides:
refreshCurrentValue in class vib.servers.SimpleDataSource

setOption

public void setOption(java.lang.String newValue)
This method is called for every single entry in the parameter list. NOTICE: This can be called multiple times in one parameter list.
Parameters:
newValue - the new String value to display

setLabel

public void setLabel(java.lang.String newValue)
This will update (change) the string being displayed as a marquee output.
Parameters:
newValue - the string being displayed as a marquee output
See Also:
Writing VIB Data Sources: Get/Set Methods, getLabel()

getLabel

public java.lang.String getLabel()
This will return the current label without any characters switched.
Returns:
the current label
See Also:
Writing VIB Data Sources: Get/Set Methods, setLabel(java.lang.String)

setLowChannel

public void setLowChannel(int newChannel)
Sets the low channel value
Parameters:
newChannel - the new low channel value to be set

getLowChannel

public int getLowChannel()
Gets the current low channel value
Returns:
the current low channel

setHighChannel

public void setHighChannel(int newChannel)
Sets the high channel value
Parameters:
newChannel - the new high channel value to be set

getHighChannel

public int getHighChannel()
Gets the current high channel value
Returns:
the current high channel

setCount

public void setCount(int newCount)
Set value of total number of A/D Scans to obtain
Parameters:
newCount - sets count value

getCount

public int getCount()
Get current value of total number of A/D scans to obtain
Returns:
current count value

setHertz

public void setHertz(int newHertz)
Sets the rate of the A/D Scans
Parameters:
newHertz - the hertz rate to set

getHertz

public int getHertz()
Gets the current rate

setRange

public void setRange(int newRange)
Sets A/D range of the PC104 board
Parameters:
newRange - the new range to set

getRange

public int getRange()
Gets the current range
Returns:
the current range value

setGain

public void setGain(int newGain)
Sets A/D gain value of the PC104 board
Parameters:
newGain - the new gain value

getGain

public int getGain()
Gets the current A/D gain value
Returns:
the current A/D gain value

setPolarity

public void setPolarity(java.lang.String newPolarity)
Sets A/D polarity of the PC104 board
Parameters:
newPolarity - the new polarity value

getPolarity

public java.lang.String getPolarity()
Gets current A/D polarity value
Returns:
the current polarity value

setServerURL

public void setServerURL(java.lang.String newURL)
Sets the Dali Server URL. The Dali Server URL consists of the following:

An example URL is the following: "http://192.168.1:444/dali/soap/prom

Parameters:
newURL - the Dali Server url to set

getServerURL

public java.lang.String getServerURL()
Get current Dali Server URL
Returns:
current Dali Server URL

setAuthen

public void setAuthen(boolean newAuthen)
Sets true or false as to whether to use Authentication
Parameters:
newAuthen - boolean value of whether to use authentication

getAuthen

public boolean getAuthen()
Gets value of whether Authentication is used
Returns:
true/false

setUsername

public void setUsername(java.lang.String newUsername)
Sets the Username for Dali Server Authentication
Parameters:
newUsername - the username

getUsername

public java.lang.String getUsername()
Gets the current username
Returns:
current username

setPassword

public void setPassword(java.lang.String newPassword)
Sets the password for Dali Server Authentication
Parameters:
newPassword - the new password value to set

getPassword

public java.lang.String getPassword()
Gets the current password
Returns:
current password value