edu.wisc.trace.urcsdk.target.uisocket
Class DecimalVariable

java.lang.Object
  extended by edu.wisc.trace.urcsdk.target.uisocket.AbstractUISocketElement
      extended by edu.wisc.trace.urcsdk.target.uisocket.UISocketVariable
          extended by edu.wisc.trace.urcsdk.target.uisocket.DecimalVariable
All Implemented Interfaces:
IUISocketElement, java.lang.Cloneable

public class DecimalVariable
extends UISocketVariable

DecimalVariable is a specialized version of a UISocketVariable that deals specifically with decimals.

Version:
$Revision: 1.7 $
Author:
Hemanth Vijayan, Trace R&D Center Created on: May 25, 2006

Field Summary
 
Fields inherited from class edu.wisc.trace.urcsdk.target.uisocket.AbstractUISocketElement
id, logger, ref, secret, sensitive, session, socket, socketDocument, timeout, type, value
 
Constructor Summary
DecimalVariable()
          Creates a new DecimalVariable instance.
DecimalVariable(UISocket socket)
          Creates a new DecimalVariable instance.
DecimalVariable(UISocketDocument parent, UISocket socket, org.w3c.dom.Element rootElement)
          Creates a new DecimalVariable instance.
 
Method Summary
 UISocketVariable clone()
          Returnes a copy of the object
 double getMaxInclusive()
          Returns the maximum inclusive value for this variable.
 double getMinInclusive()
          Returns the minimum inclusive value for this variable.
 double getStep()
          Returns the of this variable.
 void parse(org.w3c.dom.Element rootElement)
          Parses the given element for the data required to create a UISocketElement
 java.lang.Object validate(java.lang.String value)
           
 
Methods inherited from class edu.wisc.trace.urcsdk.target.uisocket.UISocketVariable
addDynamicValues, getDynamicRefVars, getStaticMap, hasSelection, isWritable
 
Methods inherited from class edu.wisc.trace.urcsdk.target.uisocket.AbstractUISocketElement
getId, getRef, getSession, getSocket, getSocketDocument, getType, getValue, internalSetValue, setSession, setSocket, setSocketDocument, setValue, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecimalVariable

public DecimalVariable()
Creates a new DecimalVariable instance.


DecimalVariable

public DecimalVariable(UISocket socket)
Creates a new DecimalVariable instance.

Parameters:
socket - an UISocket value

DecimalVariable

public DecimalVariable(UISocketDocument parent,
                       UISocket socket,
                       org.w3c.dom.Element rootElement)
                throws UrcException
Creates a new DecimalVariable instance.

Parameters:
parent - an UISocketDocument value
socket - an UISocket value
rootElement - an Element value
Throws:
UrcException - if an error occurs
Method Detail

clone

public UISocketVariable clone()
Description copied from class: AbstractUISocketElement
Returnes a copy of the object

Specified by:
clone in interface IUISocketElement
Overrides:
clone in class UISocketVariable
Returns:
an Object value

getMinInclusive

public double getMinInclusive()
Returns the minimum inclusive value for this variable.

Returns:
a double value

getMaxInclusive

public double getMaxInclusive()
Returns the maximum inclusive value for this variable.

Returns:
a double value

parse

public void parse(org.w3c.dom.Element rootElement)
           throws UrcException
Description copied from class: AbstractUISocketElement
Parses the given element for the data required to create a UISocketElement

Specified by:
parse in interface IUISocketElement
Overrides:
parse in class UISocketVariable
Parameters:
rootElement - the Element object to parse
Throws:
UrcException - if an error occurs

getStep

public double getStep()
Returns the of this variable.

Returns:
a double object.

validate

public java.lang.Object validate(java.lang.String value)
Overrides:
validate in class UISocketVariable


Copyright © 2006 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.