public final class DefaultPiPipeconf extends 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 |
---|---|
Collection<Class<? extends Behaviour>> |
behaviours()
Returns all pipeline-specific behaviour interfaces defined by this configuration.
|
static DefaultPiPipeconf.Builder |
builder()
Returns a new pipeconf builder.
|
Optional<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.
|
long |
fingerprint()
Returns the fingerprint of pipeconf.
|
boolean |
hasBehaviour(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.
|
Optional<Class<? extends Behaviour>> |
implementation(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 long fingerprint()
PiPipeconf
fingerprint
in interface PiPipeconf
public Collection<Class<? extends Behaviour>> behaviours()
PiPipeconf
behaviours
in interface PiPipeconf
public Optional<Class<? extends Behaviour>> implementation(Class<? extends Behaviour> behaviour)
PiPipeconf
implementation
in interface PiPipeconf
behaviour
- behaviour interfacepublic boolean hasBehaviour(Class<? extends Behaviour> behaviourClass)
PiPipeconf
hasBehaviour
in interface PiPipeconf
behaviourClass
- behaviour classpublic Optional<InputStream> extension(PiPipeconf.ExtensionType type)
PiPipeconf
extension
in interface PiPipeconf
type
- extension typepublic static DefaultPiPipeconf.Builder builder()