org.globus.mds.usefulrp.types
Class ExponentialRate

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

public class ExponentialRate
extends Object
implements Serializable

Represents an exponentially decaying average with metadata.

See Also:
Serialized Form

Field Summary
private  Object __equalsCalc
           
private  boolean __hashCodeCalc
           
private  long decay
           
private  double rate
           
private static TypeDesc typeDesc
           
 
Constructor Summary
ExponentialRate()
           
ExponentialRate(double rate, long decay)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getDecay()
          Gets the decay value for this ExponentialRate.
static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 double getRate()
          Gets the rate value for this ExponentialRate.
static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
static 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

decay

private long decay

__equalsCalc

private Object __equalsCalc

__hashCodeCalc

private boolean __hashCodeCalc

typeDesc

private static TypeDesc typeDesc
Constructor Detail

ExponentialRate

public ExponentialRate()

ExponentialRate

public ExponentialRate(double rate,
                       long decay)
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(Object obj)

hashCode

public int hashCode()

getTypeDesc

public static TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static Serializer getSerializer(String mechType,
                                       Class _javaType,
                                       QName _xmlType)
Get Custom Serializer


getDeserializer

public static Deserializer getDeserializer(String mechType,
                                           Class _javaType,
                                           QName _xmlType)
Get Custom Deserializer