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

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
 

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



Copyright © 1999-2006 University of Chicago. All rights reserved.