private void addObjectReferenceEdges ( Vertex vertex , ObjectReferenceDescriptor rds ) { Object refObject = rds . getPersistentField ( ) . get ( vertex . getEnvelope ( ) . getRealObject ( ) ) ; Class refClass = rds . getItemClass ( ) ; for ( int i = 0 ; i < vertices . length ; i ++ ) { Edge edge = null ; // ObjectEnvelope envelope = vertex.getEnvelope(); Vertex refVertex = vertices [ i ] ; ObjectEnvelope refEnvelope = refVertex . getEnvelope ( ) ; if ( refObject == refEnvelope . getRealObject ( ) ) { edge = buildConcrete11Edge ( vertex , refVertex , rds . hasConstraint ( ) ) ; } else if ( refClass . isInstance ( refVertex . getEnvelope ( ) . getRealObject ( ) ) ) { edge = buildPotential11Edge ( vertex , refVertex , rds . hasConstraint ( ) ) ; } if ( edge != null ) { if ( ! edgeList . contains ( edge ) ) { edgeList . add ( edge ) ; } else { edge . increaseWeightTo ( edge . getWeight ( ) ) ; } } } }
Finds edges based to a specific object reference descriptor and adds them to the edge map .