leila.parsing
Class Document.AgedLinkageWord

java.lang.Object
  extended by leila.parsing.Document.AgedLinkageWord
Enclosing class:
Document

protected class Document.AgedLinkageWord
extends java.lang.Object

Represents a reference target, memorizes the time it has been created


Field Summary
 int birthday
          Stores the sentence number at this AgedLinkageWord's creation
 LinkageWord linkageWord
          Stores the linkage word
 
Constructor Summary
Document.AgedLinkageWord(LinkageWord l)
          Constructor
 
Method Summary
 boolean isAlive()
          Tells whether this AgedLinkageWord's creation is less than SPAN ago
 void refresh()
          Sets the birthday to now
 java.lang.String toString()
          Returns a simple String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

birthday

public int birthday
Stores the sentence number at this AgedLinkageWord's creation


linkageWord

public LinkageWord linkageWord
Stores the linkage word

Constructor Detail

Document.AgedLinkageWord

public Document.AgedLinkageWord(LinkageWord l)
Constructor

Method Detail

refresh

public void refresh()
Sets the birthday to now


isAlive

public boolean isAlive()
Tells whether this AgedLinkageWord's creation is less than SPAN ago


toString

public java.lang.String toString()
Returns a simple String

Overrides:
toString in class java.lang.Object