org.rr0.im.business.event
Class EventImpl

org.rr0.im.business.event.TimeableImpl
  |
  +--org.rr0.im.business.event.EventImpl
Direct Known Subclasses:
BirthImpl, RelationshipImpl, SightingImpl

public class EventImpl
extends TimeableImpl
implements Event

Event Reference Implementation.

Author:
Jérôme Beau
Version: 21 avr. 2003 15:40:10

Fields inherited from class org.rr0.im.business.event.TimeableImpl
history

Constructor Summary
 protected EventImpl(String name)
           
 EventImpl(String title, Moment startDate)
           

Method Summary
 CategorygetForcedCategory(Classification classification)
          Returns if this classifiable has been manually forced to classify in some specific Category.

Methods inherited from class org.rr0.im.business.event.TimeableImpl
compareTo, equals, getBegining, getDuration, getEnd, getHistory, getTitle, hashCode, setEndMoment, setTitle

Constructor Detail

EventImpl

protected EventImpl(String name)

EventImpl

public EventImpl(String title, Moment startDate)
Method Detail

getForcedCategory

public Category getForcedCategory(Classification classification)
Returns if this classifiable has been manually forced to classify in some specific Category.
This allows to handle "exceptions" in Classification's systems ("everything like f(x) and also Y and Z)").
Parameters:
classification Some Classification function.
Returns: The Category in which that Classifiable has been forced to be classified in for that Classification.
null if no Category has been forced for that Classifiable.
associates <{org.rr0.im.service.function.classification.Category}>
supplierRole forced category
supplierCardinality 0..1

Association Links

to Class org.rr0.im.service.function.classification.Category

Returns if this classifiable has been manually forced to classify in some specific Category.
This allows to handle "exceptions" in Classification's systems ("everything like f(x) and also Y and Z)").

Supplier Role forced category
Supplier Cardinality 0..1
associates <{org.rr0.im.service.function.classification.Category}>
return The Category in which that Classifiable has been forced to be classified in for that Classification.
null if no Category has been forced for that Classifiable.
param classification Some Classification function.