Package psidev.psi.mi.jami.model.impl
Class DefaultCausalRelationship
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultCausalRelationship
-
- All Implemented Interfaces:
CausalRelationship
- Direct Known Subclasses:
MitabCausalRelationship
public class DefaultCausalRelationship extends Object implements CausalRelationship
Default implementation for CausalRelationship Notes: The equals and hashcode methods have NOT been overridden because the CausalRelationship object is a complex object. To compare CausalRelationship objects, you can use some comparators provided by default: - DefaultCausalRelationshipComparator - UnambiguousCausalRelationshipComparator - DefaultExactCausalRelationshipComparator - UnambiguousExactCausalRelationshipComparator - CausalRelationshipComparator- Since:
22/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultCausalRelationship(CvTerm relationType, Participant target)
Constructor for DefaultCausalRelationship.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CvTerm
getRelationType()
Getter for the fieldrelationType
.Entity
getTarget()
Getter for the fieldtarget
.String
toString()
-
-
-
Constructor Detail
-
DefaultCausalRelationship
public DefaultCausalRelationship(CvTerm relationType, Participant target)
Constructor for DefaultCausalRelationship.
- Parameters:
relationType
- aCvTerm
object.target
- aParticipant
object.
-
-
Method Detail
-
getRelationType
public CvTerm getRelationType()
Getter for the field
relationType
.- Specified by:
getRelationType
in interfaceCausalRelationship
- Returns:
- a
CvTerm
object.
-
getTarget
public Entity getTarget()
Getter for the field
target
.- Specified by:
getTarget
in interfaceCausalRelationship
- Returns:
- a
Entity
object.
-
-