de.unidu.is.rs
Class Costs
java.lang.Object
java.util.AbstractMap
java.util.HashMap
de.unidu.is.rs.Costs
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class Costs
- extends java.util.HashMap
A class for estimated costs when retrieving of i documents,
1<=i
- Since:
- 2002-06-06
- Version:
- $Revision: 1.6 $, $Date: 2005/03/14 17:33:14 $
- Author:
- Henrik Nottelmann
- See Also:
- Serialized Form
|
Constructor Summary |
Costs()
|
|
Method Summary |
java.util.Iterator |
costSources()
Returns the names of all cost sources for which costs are
stored in this instance. |
double[] |
getCosts(java.lang.String source)
Returns the costs when retrieving of i documents,
1<=i
|
void |
setCosts(java.lang.String source,
double[] costs)
Sets the costs when retrieving of i documents,
1<=i
|
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
Costs
public Costs()
getCosts
public double[] getCosts(java.lang.String source)
- Returns the costs when retrieving of i documents,
1<=i
- Parameters:
source - cost source
- Returns:
- cost array
setCosts
public void setCosts(java.lang.String source,
double[] costs)
- Sets the costs when retrieving of i documents,
1<=i
- Parameters:
source - cost sourcecosts - cost array
costSources
public java.util.Iterator costSources()
- Returns the names of all cost sources for which costs are
stored in this instance.
- Returns:
- iterator over cost names