Class MotifSearchResult
java.lang.Object
org.rcsb.strucmotif.domain.result.MotifSearchResult
The state and results of a motif search run.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHits()Access all (currently) valid hits.intThe number of valid paths in all target structures.intThe number of referenced target structures.getQuery()The initial query.Access to all currently referenced target structures.Associated timings.intCalled internally after a descriptor has been processed.voidUpdate the collection of currently valid hits.voidsetNumberOfPaths(int numberOfPaths) Update the number of valid paths.voidsetNumberOfTargetStructures(int numberOfTargetStructures) Update the number of referenced target structures.voidsetTargetStructures(Map<String, TargetStructure> targetStructures) Update the currently referenced target structures.
-
Constructor Details
-
MotifSearchResult
Construct a result container.- Parameters:
query- the initial query
-
-
Method Details
-
getQuery
The initial query.- Returns:
- a query
-
getTimings
Associated timings.- Returns:
- timings object
-
getTargetStructures
Access to all currently referenced target structures.- Returns:
- a map with structure identifiers as keys and target structure instances as values
-
setTargetStructures
Update the currently referenced target structures.- Parameters:
targetStructures- a map with structure identifiers as keys and target structure instances as values
-
setHits
Update the collection of currently valid hits.- Parameters:
hits- a collection of hits
-
getHits
Access all (currently) valid hits.- Returns:
- a collection of hits
-
setNumberOfPaths
public void setNumberOfPaths(int numberOfPaths) Update the number of valid paths.- Parameters:
numberOfPaths- an int
-
getNumberOfPaths
public int getNumberOfPaths()The number of valid paths in all target structures.- Returns:
- an int
-
setNumberOfTargetStructures
public void setNumberOfTargetStructures(int numberOfTargetStructures) Update the number of referenced target structures.- Parameters:
numberOfTargetStructures- an int
-
getNumberOfTargetStructures
public int getNumberOfTargetStructures()The number of referenced target structures.- Returns:
- an int
-
incrementAndGetPathGeneration
public int incrementAndGetPathGeneration()Called internally after a descriptor has been processed.- Returns:
- the new path generation
-