HiRISE

HiRISE.HiPlan.Data_Slacker
Class AbstractSsrTransaction

java.lang.Object
  extended by HiRISE.HiPlan.Data_Slacker.AbstractSsrTransaction
All Implemented Interfaces:
SsrTransaction
Direct Known Subclasses:
DLinkRecord, SsrDrain, SsrInput

public abstract class AbstractSsrTransaction
extends Object
implements SsrTransaction

A partial set of default implementations for the SsrTransaction interface. The getDuration() and getRate() methods are implemented.

Version:
1.2
Author:
Christian Schaller - UA/PIRL

Constructor Summary
AbstractSsrTransaction()
           
 
Method Summary
 double getDuration()
          Gets the duration of this transaction in seconds.
 double getRate()
          Gets the transaction rate in bits per second.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface HiRISE.HiPlan.Data_Slacker.SsrTransaction
getBits, getEndMillis, getStartMillis
 

Constructor Detail

AbstractSsrTransaction

public AbstractSsrTransaction()
Method Detail

getDuration

public double getDuration()
Gets the duration of this transaction in seconds. The duration is the difference between its end date and its start date, expressed in seconds.

Specified by:
getDuration in interface SsrTransaction
Returns:
the transaction duration in seconds.

getRate

public double getRate()
Gets the transaction rate in bits per second. The rate is an average rate over the duration.

Specified by:
getRate in interface SsrTransaction
Returns:
the transaction rate in bits per second.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona