org.globus.mds.usefulrp.types
Class ExponentialRate

java.lang.Object
  extended byorg.globus.mds.usefulrp.types.ExponentialRate
All Implemented Interfaces:
java.io.Serializable

public class ExponentialRate
extends java.lang.Object
implements java.io.Serializable

Represents an exponentially decaying average with metadata.

See Also:
Serialized Form

Field Summary
private  java.lang.Object __equalsCalc
           
private  boolean __hashCodeCalc
           
private  long decay
          The decay constant, measured in seconds.
private  double rate
          The exponentially-weighted weight, measured in units/second.
private static org.apache.axis.description.TypeDesc typeDesc
           
 
Constructor Summary
ExponentialRate()
           
ExponentialRate(long decay, double rate)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getDecay()
          Gets the decay value for this ExponentialRate.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Deserializer
 double getRate()
          Gets the rate value for this ExponentialRate.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Serializer
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setDecay(long decay)
          Sets the decay value for this ExponentialRate.
 void setRate(double rate)
          Sets the rate value for this ExponentialRate.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rate

private double rate
The exponentially-weighted weight, measured in units/second.


decay

private long decay
The decay constant, measured in seconds.


__equalsCalc

private java.lang.Object __equalsCalc

__hashCodeCalc

private boolean __hashCodeCalc

typeDesc

private static org.apache.axis.description.TypeDesc typeDesc
Constructor Detail

ExponentialRate

public ExponentialRate()

ExponentialRate

public ExponentialRate(long decay,
                       double rate)
Method Detail

getRate

public double getRate()
Gets the rate value for this ExponentialRate.

Returns:
rate The exponentially-weighted weight, measured in units/second.

setRate

public void setRate(double rate)
Sets the rate value for this ExponentialRate.

Parameters:
rate - The exponentially-weighted weight, measured in units/second.

getDecay

public long getDecay()
Gets the decay value for this ExponentialRate.

Returns:
decay The decay constant, measured in seconds.

setDecay

public void setDecay(long decay)
Sets the decay value for this ExponentialRate.

Parameters:
decay - The decay constant, measured in seconds.

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Custom Deserializer