public interface AlgorithmSource extends Source<AlgorithmSourceUpdatedEvent,AlgorithmSourceBackend,AlgorithmSourceBackendUpdatedEvent>
| Modifier and Type | Method and Description |
|---|---|
Algorithm |
readAlgorithm(String id)
Read an algorithm with the given id.
|
Set<Algorithm> |
readAlgorithms()
Reads all algorithms in this algorithm source.
|
addSourceListener, clear, close, getBackends, removeSourceListener, setEventListenersbackendUpdated, unrecoverableErrorOccurredAlgorithm readAlgorithm(String id) throws AlgorithmSourceReadException
id - an algorithm id String.Algorithm object, or null if no algorithm
with the specified id exists. If a null id is * specified, null is returned.AlgorithmSourceReadException - when an error occurs in a backend
reading the specified algorithm.Set<Algorithm> readAlgorithms() throws AlgorithmSourceReadException
Set of Algorithm
objects. Guaranteed not to return null.AlgorithmSourceReadException - when an error occurs in a backend
reading an algorithm.Copyright © 2012–2018 Emory University. All rights reserved.