java.lang.Object
com.genologics.ri.protocolconfiguration.Protocol
- All Implemented Interfaces:
Linkable<Protocol>,Locatable,Serializable
Detailed representation of a protocol.
A protocol represents a collection of different steps. A protocol can be a QC protocol meaning samples go through the process mostly in parallel or a normal protocol, where samples go through in series.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternRegular expression to extract protocol id from a protocol URI.protected IntegerThe index of the protocol.protected StringThe name of the protocol.protected List<ProtocolProperty>The list of protocol properties.protected List<ProtocolStep>The list of steps in this protocol.protected URIThe URI of the protocol. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the numeric identifier for this protocol from its URI.getIndex()Gets the index of the protocol.getLink()Get a concrete link object to thisLinkablething.getName()Gets the name of the protocol.Gets the list of protocol properties.getSteps()Gets the list of steps in this protocol.getUri()Gets the URI of the protocol.voidSets the index of the protocol.voidSets the name of the protocol.voidSets the URI of the protocol.
-
Field Details
-
ID_EXTRACTOR_PATTERN
Regular expression to extract protocol id from a protocol URI.- Since:
- 2.22
-
steps
The list of steps in this protocol. -
protocolProperties
The list of protocol properties. -
name
The name of the protocol. -
index
The index of the protocol. -
uri
The URI of the protocol.
-
-
Constructor Details
-
Protocol
public Protocol()Default constructor. -
Protocol
Constructor with URI.- Parameters:
uri- The URI of the protocol.
-
Protocol
Constructor with URI and name.- Parameters:
uri- The URI of the protocol.name- The name of the protocol.
-
Protocol
Constructor with URI, name, and index.- Parameters:
uri- The URI of the protocol.name- The name of the protocol.index- The index of the protocol.
-
-
Method Details
-
getId
Get the numeric identifier for this protocol from its URI.- Returns:
- The protocol id, or null if either the URI is not set or it doesn't match the form expected for a protocol URI.
- Since:
- 2.22
-
getSteps
Gets the list of steps in this protocol.- Returns:
- The list of protocol steps.
-
getProtocolProperties
Gets the list of protocol properties.- Returns:
- The list of protocol properties.
-
getName
Gets the name of the protocol.- Returns:
- The protocol name.
-
setName
Sets the name of the protocol.- Parameters:
name- The protocol name.
-
getIndex
Gets the index of the protocol.- Returns:
- The protocol index.
-
setIndex
Sets the index of the protocol.- Parameters:
index- The protocol index.
-
getUri
Gets the URI of the protocol. -
setUri
Sets the URI of the protocol. -
getLink
Get a concrete link object to thisLinkablething.
-