UNICORE Resource Broker NJS Plugin
1.5α1

org.eurogrid.broker.server.globus
Class Translation.ConstraintResult

java.lang.Object
  |
  +--org.eurogrid.broker.server.globus.Translation.ConstraintResult
All Implemented Interfaces:
Cloneable, Serializable
Enclosing class:
Translation

public class Translation.ConstraintResult
extends Object
implements Cloneable, Serializable

The constrained values discovered as part of results of searching for a node in a Globus information service.

Author:
Donal K. Fellows
See Also:
Translation.Constraint, Serialized Form

Field Summary
 Translation.Constraint constraint
          What constraint is this a result for
 
Method Summary
 double getFloatValue(int index)
          Get the index'th double value from the list of values.
 double[] getFloatValues()
          Get the list of double values associated with the constraint.
 int getIntValue(int index)
          Get the index'th integer value from the list of values.
 int[] getIntValues()
          Get the list of integer values associated with the constraint.
 String getValue(int index)
          Get the index'th string value from the list of values.
 int getValueCount()
          Get the number of values associated with the constraint.
 List getValues()
          Get the list of string values associated with the constraint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraint

public final Translation.Constraint constraint
What constraint is this a result for

Method Detail

getFloatValue

public double getFloatValue(int index)
                     throws NumberFormatException
Get the index'th double value from the list of values.

Throws:
NumberFormatException - If the value is not a double.
ValueNotRequestedException - If the constraint for this result did not request the return of the value from the information service.

getFloatValues

public double[] getFloatValues()
                        throws NumberFormatException
Get the list of double values associated with the constraint. This will only work if all the values are doubles.

Throws:
NumberFormatException - If any of the values are non-doubles.
ValueNotRequestedException - If the constraint for this result did not request the return of the value from the information service.

getIntValue

public int getIntValue(int index)
                throws NumberFormatException
Get the index'th integer value from the list of values.

Throws:
NumberFormatException - If the value is not an integer.
ValueNotRequestedException - If the constraint for this result did not request the return of the value from the information service.

getIntValues

public int[] getIntValues()
                   throws NumberFormatException
Get the list of integer values associated with the constraint. This will only work if all the values are integers.

Throws:
NumberFormatException - If any of the values are non-integers.
ValueNotRequestedException - If the constraint for this result did not request the return of the value from the information service.

getValue

public String getValue(int index)
Get the index'th string value from the list of values.

Throws:
ValueNotRequestedException - If the constraint for this result did not request the return of the value from the information service.

getValueCount

public int getValueCount()
Get the number of values associated with the constraint.


getValues

public List getValues()
Get the list of string values associated with the constraint.


UNICORE Resource Broker NJS Plugin
1.5α1

Submit a bug or feature
Copyright © 2002-2004 University of Manchester, U.K. See license.terms for details.