pl.edu.agh.cast.model.base
Interface ITimedRelation

All Superinterfaces:
IRelation, Mappable
All Known Implementing Classes:
TimedRelation

public interface ITimedRelation
extends IRelation

Represents relations which have the "date" attribute. It allows them to ordered and drawn on the timeline diagram.

Author:
AGH CAST Team

Method Summary
 boolean fixedEquals(ITimedRelation relation)
          Checks if given timed relation is equal in terms of timed relation not the domain-specific sense, to the given timed relation.
 Date getDate()
          The date of the occurrence of the relation.
 int getFixedHashCode()
          Returns the hash code of the timed relation seen as timed relation, not as a domain-specific object.
 ITimedRelation getTimedRelation()
          Returns a simple representation of the relation, of class TimedRelation, regardless of the actual class of this object.
 
Methods inherited from interface pl.edu.agh.cast.model.base.IRelation
addDataSet, getDataSets, getId, getSource, getTarget, setDataSets, setId, setSource, setTarget
 
Methods inherited from interface pl.edu.agh.cast.model.mapper.Mappable
clone, getAttribute, getAttributeNames, getAttributeType, getMid, getType, setAttribute, setMid
 

Method Detail

getDate

Date getDate()
The date of the occurrence of the relation.

Returns:
The date.

getTimedRelation

ITimedRelation getTimedRelation()
Returns a simple representation of the relation, of class TimedRelation, regardless of the actual class of this object.

Returns:
a ITimedRelation with source, target and date identical as current object's

getFixedHashCode

int getFixedHashCode()
Returns the hash code of the timed relation seen as timed relation, not as a domain-specific object. The hash code should take into account only the source, target and date of the relation.

Returns:
The hash code of the timed relation calculated for fixed set of attributes.

fixedEquals

boolean fixedEquals(ITimedRelation relation)
Checks if given timed relation is equal in terms of timed relation not the domain-specific sense, to the given timed relation.

Parameters:
relation - The relation which is checked for equality.
Returns:
True if source, target and the date of both relations are equal.


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.