|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Edge
The Edge
interface represents a simple binary relation. Edges
may be directed or not.
Method Summary | |
---|---|
EdgeClass |
getEdgeClass()
Returns the type of the edge. |
GraphEntity |
getSource()
Returns the source graph element. |
GraphEntity |
getTarget()
Returns the target graph element. |
boolean |
isDirected()
Returns true if the edge is directed and false
otherwise. |
void |
setSource(GraphEntity g)
Sets the source graph element. |
void |
setTarget(GraphEntity g)
Sets the target graph element. |
Methods inherited from interface i3.dragos.gm.core.GraphEntity |
---|
equals, getAdjacentGraphEntities, getAdjacentRelations, getAdjacentRelations, getAllValidAttributeValues, getAttributeValue, getDataSourceURL, getEdges, getEdges, getGraphEntityClass, getInternalIdentifier, getParent, getRelationEnds, getRelationEnds, getRelationEnds, getWrappedGraphEntity, hashCode, isAttributeValid, isIncident, isIncident, putAttributeValue, setAttributeInvalid |
Methods inherited from interface i3.dragos.gm.core.schema.MetaAttributable |
---|
getAllMetaAttributes, getMetaAttribute, isMetaAttributeKeyReserved, isMetaAttributeSet, setMetaAttribute, unsetMetaAttribute |
Methods inherited from interface i3.dragos.gm.core.schema.ExistenceCheckable |
---|
checkExistence, checkExistenceOptional |
Method Detail |
---|
EdgeClass getEdgeClass() throws DragosException
Actually, this method is just a correctly typed wrapper for calling
GraphEntity.getGraphEntityClass()
.
DragosException
- if something went wrong.void setSource(GraphEntity g) throws EntityNotFoundException, DragosException
g
- the source graph element (may be null
).
EntityNotFoundException
- if the source was not
null
and could not be found.
DragosException
- if something went wrong.GraphEntity getSource() throws DragosException
DragosException
- if something went wrong.void setTarget(GraphEntity g) throws EntityNotFoundException, DragosException
g
- the target graph element (may be null
).
EntityNotFoundException
- if the target was not
null
and could not be found.
DragosException
- if something went wrong.GraphEntity getTarget() throws DragosException
DragosException
- if something went wrong.boolean isDirected() throws DragosException
true
if the edge is directed and false
otherwise.
true
if the edge is directed and false
otherwise.
DragosException
- if something went wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |