org.mc4j.ems.store
Class CompleteValueHistory

java.lang.Object
  extended by org.mc4j.ems.store.CompleteValueHistory
All Implemented Interfaces:
ValueHistory

public class CompleteValueHistory
extends java.lang.Object
implements ValueHistory

Version:
$Revision: 570 $($Author: ghinkl $ / $Date: 2006-04-12 15:14:16 -0400 (Wed, 12 Apr 2006) $)
Author:
Greg Hinkle (ghinkle@users.sourceforge.net), Apr 6, 2005

Field Summary
protected  int historySize
           
protected  java.util.List<Value> values
          Newer values are added at the end of the list.
 
Constructor Summary
CompleteValueHistory()
           
CompleteValueHistory(int historySize)
           
 
Method Summary
 void addValue(Value value)
           
 int getHistorySize()
           
 java.util.List<Value> getValues()
           
 void setMaximumHistorySize(int historySize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected java.util.List<Value> values
Newer values are added at the end of the list. Oldest values first.


historySize

protected int historySize
Constructor Detail

CompleteValueHistory

public CompleteValueHistory()

CompleteValueHistory

public CompleteValueHistory(int historySize)
Method Detail

getHistorySize

public int getHistorySize()
Specified by:
getHistorySize in interface ValueHistory

setMaximumHistorySize

public void setMaximumHistorySize(int historySize)

getValues

public java.util.List<Value> getValues()
Specified by:
getValues in interface ValueHistory

addValue

public void addValue(Value value)
Specified by:
addValue in interface ValueHistory