edu.mayo.informatics.resourcereader.obo
Class OBORelations
java.lang.Object
edu.mayo.informatics.resourcereader.core.impl.Resource
edu.mayo.informatics.resourcereader.obo.OBO
edu.mayo.informatics.resourcereader.obo.OBOCollection
edu.mayo.informatics.resourcereader.obo.OBORelations
- All Implemented Interfaces:
- ResourceCollection, TopResource
public class OBORelations
- extends OBOCollection
The class stores the list of OBO relations
- Version:
- subversion $Revision: $ checked in on $Date: $
- Author:
- Deepak Sharma
Fields inherited from class edu.mayo.informatics.resourcereader.obo.OBO |
logger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OBORelations
public OBORelations(CachingMessageDirectorIF rLogger)
init
public void init()
- Specified by:
init
in interface ResourceCollection
- Overrides:
init
in class OBOCollection
addMember
public void addMember(ResourceEntity relp)
throws ResourceException
- Specified by:
addMember
in interface ResourceCollection
- Overrides:
addMember
in class OBOCollection
- Throws:
ResourceException
addMergeMember
public void addMergeMember(OBORelation rel)
throws ResourceException
- Throws:
ResourceException
getMemberById
public OBORelation getMemberById(java.lang.String id)
throws ResourceException
- Specified by:
getMemberById
in interface ResourceCollection
- Overrides:
getMemberById
in class OBOCollection
- Throws:
ResourceException
getMemberByName
public OBORelation getMemberByName(java.lang.String name)
throws ResourceException
- Specified by:
getMemberByName
in interface ResourceCollection
- Overrides:
getMemberByName
in class OBOCollection
- Throws:
ResourceException
getAllMembers
public java.util.Collection<OBORelation> getAllMembers()
- Specified by:
getAllMembers
in interface ResourceCollection
- Overrides:
getAllMembers
in class OBOCollection
getAllUsedRelationsDelete
protected java.util.Collection<OBORelation> getAllUsedRelationsDelete()
- Don't use this function as the rel.isUsed is not being set correctly
while the OBO file is being read.
getMembersCount
public long getMembersCount()
- Specified by:
getMembersCount
in interface ResourceCollection
- Overrides:
getMembersCount
in class OBOCollection
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object