Class DefaultChunk<T>
java.lang.Object
de.monochromata.anaphors.cog.memory.DefaultChunk<T>
- Type Parameters:
T- The type of object that this chunk represents.
- All Implemented Interfaces:
Activatable,Chunk<T>
public class DefaultChunk<T> extends Object implements Chunk<T>
- Since:
- 1.1.0
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultChunk()Used in contract testing.DefaultChunk(ActivationFormula activationFormula, T represented) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)EstimatedActivationValuegetEstimatedActivationValue(long timestamp)Returns the estimated activation value of this activatable object at the given timestamp.TgetRepresented()inthashCode()
-
Constructor Details
-
DefaultChunk
protected DefaultChunk()Used in contract testing. -
DefaultChunk
-
-
Method Details
-
getEstimatedActivationValue
Description copied from interface:ActivatableReturns the estimated activation value of this activatable object at the given timestamp.If this method is invoked multiple times with the same timestamp, it might return the same
EstimatedActivationValueor another instance that is equal to the previous ones (i.e.newResult.compareTo(oldResult) == 0).- Specified by:
getEstimatedActivationValuein interfaceActivatable- Parameters:
timestamp- A timestamp as returned bySystem.currentTimeMillis().- Returns:
- The activation value at the given timestamp.
-
getRepresented
- Specified by:
getRepresentedin interfaceChunk<T>
-
hashCode
-
equals
-