slib.sglib.utils
Class WalkConstraintGeneric
java.lang.Object
slib.sglib.utils.WalkConstraintGeneric
- All Implemented Interfaces:
- slib.sglib.model.graph.utils.WalkConstraint
public class WalkConstraintGeneric
- extends Object
- implements slib.sglib.model.graph.utils.WalkConstraint
Class used to facilitate the use of WalkConstraint over graph, only
considering the vertices associated to VType#CLASS
.
- Author:
- Harispe Sébastien
Constructor Summary |
WalkConstraintGeneric()
|
WalkConstraintGeneric(Map<org.openrdf.model.URI,slib.sglib.model.graph.utils.Direction> walkRules)
Build an instance of walk constraint considering the walk rule. |
WalkConstraintGeneric(org.openrdf.model.URI acceptedPredicate,
slib.sglib.model.graph.utils.Direction dir)
Build an instance of walk constraint considering the given predicate URI
and direction. |
WalkConstraintGeneric
public WalkConstraintGeneric()
WalkConstraintGeneric
public WalkConstraintGeneric(Map<org.openrdf.model.URI,slib.sglib.model.graph.utils.Direction> walkRules)
- Build an instance of walk constraint considering the walk rule.
- Parameters:
walkRules
- a map containing the predicate to consider and their
respective direction
WalkConstraintGeneric
public WalkConstraintGeneric(org.openrdf.model.URI acceptedPredicate,
slib.sglib.model.graph.utils.Direction dir)
- Build an instance of walk constraint considering the given predicate URI
and direction.
- Parameters:
acceptedPredicate
- the predicate URI to considerdir
- the direction associated
respectConstaints
public boolean respectConstaints(slib.sglib.model.graph.elements.E e,
slib.sglib.model.graph.utils.Direction dir)
- Specified by:
respectConstaints
in interface slib.sglib.model.graph.utils.WalkConstraint
getAcceptedPredicates
public Set<org.openrdf.model.URI> getAcceptedPredicates()
- Specified by:
getAcceptedPredicates
in interface slib.sglib.model.graph.utils.WalkConstraint
getAcceptedWalks_DIR_IN
public Set<org.openrdf.model.URI> getAcceptedWalks_DIR_IN()
- Specified by:
getAcceptedWalks_DIR_IN
in interface slib.sglib.model.graph.utils.WalkConstraint
getAcceptedWalks_DIR_OUT
public Set<org.openrdf.model.URI> getAcceptedWalks_DIR_OUT()
- Specified by:
getAcceptedWalks_DIR_OUT
in interface slib.sglib.model.graph.utils.WalkConstraint
getAcceptedWalks_DIR_BOTH
public Set<org.openrdf.model.URI> getAcceptedWalks_DIR_BOTH()
- Specified by:
getAcceptedWalks_DIR_BOTH
in interface slib.sglib.model.graph.utils.WalkConstraint
getAssociatedDirection
public slib.sglib.model.graph.utils.Direction getAssociatedDirection(org.openrdf.model.URI uri)
- Specified by:
getAssociatedDirection
in interface slib.sglib.model.graph.utils.WalkConstraint
addAcceptedTraversal
public void addAcceptedTraversal(org.openrdf.model.URI pred,
slib.sglib.model.graph.utils.Direction dir)
- Specified by:
addAcceptedTraversal
in interface slib.sglib.model.graph.utils.WalkConstraint
addAcceptedTraversal
public void addAcceptedTraversal(Set<org.openrdf.model.URI> pred,
slib.sglib.model.graph.utils.Direction dir)
- Specified by:
addAcceptedTraversal
in interface slib.sglib.model.graph.utils.WalkConstraint
addWalkconstraints
public void addWalkconstraints(slib.sglib.model.graph.utils.WalkConstraint wc)
- Specified by:
addWalkconstraints
in interface slib.sglib.model.graph.utils.WalkConstraint
acceptOutWalks
public boolean acceptOutWalks()
- Specified by:
acceptOutWalks
in interface slib.sglib.model.graph.utils.WalkConstraint
acceptInWalks
public boolean acceptInWalks()
- Specified by:
acceptInWalks
in interface slib.sglib.model.graph.utils.WalkConstraint
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013. All Rights Reserved.