
org.biopax.paxtools.query.algorithm.Direction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paxtools-query Show documentation
Show all versions of paxtools-query Show documentation
BioPAX graph-theoretic querying - for finding paths between molecules,
or identifying molecules that are reachable through specific paths, using the BioPAX pathway data model.
package org.biopax.paxtools.query.algorithm;
/**
* Direction is used for specifying upstream, downstream or both. Neighborhood and CommonStream
* queries use this enum as parameter.
*
* The difference between BOTHSTREAM and UNDIRECTED: Both-stream means that the linking paths can be
* either towards upstream or downstream. A linking path will always be directed towards one
* direction, i.e. the directions of its relations will be consistent. Undirected means the
* directions are not considered at all, so a linking path can contain relations towards different
* directions.
*
* @author Ozgun Babur
*/
public enum Direction
{
UPSTREAM("Search direction backwards in the order of events"),
DOWNSTREAM("Search direction forward in the order of events"),
BOTHSTREAM("Search towards both directions"),
UNDIRECTED("Search without considering directions");
/**
* Description of the direction.
*/
private final String description;
/**
* Constructor with description.
* @param description Description
*/
private Direction(String description)
{
this.description = description;
}
/**
* Gets the description.
* @return description
*/
public String getDescription()
{
return description;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy