Package nz.org.riskscape.engine.output
Interface WriterConstructor
public interface WriterConstructor
Functional interface for something that is able to create a RiskscapeWriter
.
TODO add some support for creating a writer with options, e.g. advertise a ParameterSet
and accept some
BoundParameters
in newWriter(ExecutionContext, Struct, CreateHandle)
-
Method Summary
Modifier and TypeMethodDescriptionResultOrProblems<? extends RiskscapeWriter>
newWriter
(ExecutionContext context, Struct type, CreateHandle handle) Create a new writer that can write the given type.
-
Method Details
-
newWriter
ResultOrProblems<? extends RiskscapeWriter> newWriter(ExecutionContext context, Struct type, CreateHandle handle) Create a new writer that can write the given type.
- Parameters:
context
-type
- the type to be writtenhandle
- where to write to- Returns:
- writer or problems encountered
-