Class GraphRelation
java.lang.Object
fr.gouv.vitam.metadata.core.graph.GraphRelation
Contains information of relation child -> parent
unit: the current treated unit
unitOriginatingAgency: the originatingAgency of the current unit
parent: the parent unit of the current treated unit
parentOriginatingAgency: the originatingAgency of the parent unit
depth: the depth of the relation
AU1
/ \ \
/ \ \
AU2 AU3 \
\ / \
\ / |
AU4 /
\ /
\ /
AU5
AU1/AU2 depth = 1
AU1/AU5 depth = 1
AU1/AU3 depth = 1
AU2/AU4 depth = 2
AU3/AU4 depth = 2
AU4/AU5 depth = 3 (ignored as we have already /AU5 with depth 1)
-
Constructor Summary
ConstructorDescriptionGraphRelation
(String unit, String parent, String parentOriginatingAgency, Integer depth) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
getDepth()
Get depthGet parent unitGet parentOriginatingAgencygetUnit()
Get unitint
hashCode()
void
Set depthvoid
Set parent unitvoid
setParentOriginatingAgency
(String parentOriginatingAgency) Set parentOriginatingAgencyvoid
Set unit
-
Constructor Details
-
GraphRelation
Constructor- Parameters:
unit
-parent
-parentOriginatingAgency
-depth
-
-
-
Method Details
-
getUnit
Get unit- Returns:
- unit
-
setUnit
Set unit- Parameters:
unit
-
-
getParent
Get parent unit- Returns:
- parent
-
setParent
Set parent unit- Parameters:
parent
-
-
getParentOriginatingAgency
Get parentOriginatingAgency- Returns:
- parentOriginatingAgency
-
setParentOriginatingAgency
Set parentOriginatingAgency- Parameters:
parentOriginatingAgency
-
-
getDepth
Get depth- Returns:
- depth
-
setDepth
Set depth- Parameters:
depth
-
-
hashCode
public int hashCode() -
equals
-