edu.iu.iv.modeling.tarl.publication.impl
Class DefaultAgingHelper
java.lang.Object
|
+--edu.iu.iv.modeling.tarl.publication.impl.DefaultAgingHelper
- All Implemented Interfaces:
- AgingHelperInterface
- public class DefaultAgingHelper
- extends java.lang.Object
- implements AgingHelperInterface
This class provides a default implementation for the AgingHelperInterface. It uses the same probability distribution as used in the PNAS paper to generate a random number. It reads this distrbution from a file on the disk.
- Author:
- Jeegar T Maru
- See Also:
DefaultPublicationManager,
AgingHelperInterface
|
Method Summary |
int |
getRandomYearDifference()
Returns a random positive number (or 0) which simulates the aging effect among citations |
void |
initialize(java.io.File agingFile)
Initializes the aging helper |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAgingHelper
public DefaultAgingHelper()
initialize
public void initialize(java.io.File agingFile)
- Initializes the aging helper
- Specified by:
initialize in interface AgingHelperInterface
getRandomYearDifference
public int getRandomYearDifference()
- Returns a random positive number (or 0) which simulates the aging effect among citations
- Specified by:
getRandomYearDifference in interface AgingHelperInterface
- Returns:
- the random positive number (or 0)