public final class DefaultPiPipeconf extends java.lang.Object implements PiPipeconf
Modifier and Type | Class and Description |
---|---|
static class |
DefaultPiPipeconf.Builder
Builder of pipeconf implementations.
|
PiPipeconf.ExtensionType
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.Class<? extends Behaviour>> |
behaviours()
Returns all pipeline-specific behaviour interfaces defined by this configuration.
|
static DefaultPiPipeconf.Builder |
builder()
Returns a new pipeconf builder.
|
java.util.Optional<java.io.InputStream> |
extension(PiPipeconf.ExtensionType type)
Returns, if present, an input stream pointing at the beginning of a file representing a device-specific or
control protocol-specific extension of this configuration.
|
boolean |
hasBehaviour(java.lang.Class<? extends Behaviour> behaviourClass)
Indicates whether or not the pipeconf supports the specified class of behaviour.
|
PiPipeconfId |
id()
Returns the identifier of this pipeline configuration.
|
java.util.Optional<java.lang.Class<? extends Behaviour>> |
implementation(java.lang.Class<? extends Behaviour> behaviour)
Returns the implementation class for the given behaviour, if present.
|
PiPipelineModel |
pipelineModel()
Returns the pipeline model.
|
public PiPipeconfId id()
PiPipeconf
id
in interface PiPipeconf
public PiPipelineModel pipelineModel()
PiPipeconf
pipelineModel
in interface PiPipeconf
public java.util.Collection<java.lang.Class<? extends Behaviour>> behaviours()
PiPipeconf
behaviours
in interface PiPipeconf
public java.util.Optional<java.lang.Class<? extends Behaviour>> implementation(java.lang.Class<? extends Behaviour> behaviour)
PiPipeconf
implementation
in interface PiPipeconf
behaviour
- behaviour interfacepublic boolean hasBehaviour(java.lang.Class<? extends Behaviour> behaviourClass)
PiPipeconf
hasBehaviour
in interface PiPipeconf
behaviourClass
- behaviour classpublic java.util.Optional<java.io.InputStream> extension(PiPipeconf.ExtensionType type)
PiPipeconf
extension
in interface PiPipeconf
type
- extension typepublic static DefaultPiPipeconf.Builder builder()