public class OptimizationJSONImporter extends Object implements IOptimizationImporter
IOptimization
as a JSON file
.Constructor and Description |
---|
OptimizationJSONImporter() |
Modifier and Type | Method and Description |
---|---|
Optional<IOptimization> |
read(InputStream fis)
|
boolean |
update(InputStream fis,
IOptimization existingOpti)
|
boolean |
update(InputStream fis,
IOptimization existingOpti,
boolean isIgnoreExistingSolution)
Update.
|
boolean |
update(InputStream fis,
IOptimization existingOpti,
Optional<INodeEdgeConnector> existingNodeConnector,
Properties existingProperties,
boolean isOnlyPropertyUpdate)
Updates an existing
IOptimization optionally with already existing INodeEdgeConnector and properties . |
boolean |
update(InputStream fis,
IOptimization existingOpti,
Optional<INodeEdgeConnector> existingNodeConnector,
Properties existingProperties,
boolean isOnlyPropertyUpdate,
boolean isIgnoreExistingSolution)
Updates an existing
IOptimization optionally with already existing INodeEdgeConnector
and properties . |
public Optional<IOptimization> read(InputStream fis)
read
in interface IJOptImporter<IOptimization>
read
in interface IOptimizationImporter
fis
- the inputStreampublic boolean update(InputStream fis, IOptimization existingOpti)
update
in interface IOptimizationImporter
fis
- the inputStreamexistingOpti
- the iOptimization to be updatedpublic boolean update(InputStream fis, IOptimization existingOpti, boolean isIgnoreExistingSolution)
update
in interface IOptimizationImporter
fis
- the fisexistingOpti
- the existing optiisIgnoreExistingSolution
- the is ignore existing solutionpublic boolean update(InputStream fis, IOptimization existingOpti, Optional<INodeEdgeConnector> existingNodeConnector, Properties existingProperties, boolean isOnlyPropertyUpdate)
IOptimization
optionally with already existing INodeEdgeConnector
and properties
.
If the boolean
is true
, only the given properties
are being
overwritten. If false
the rest of the parameters
are set to default
.
update
in interface IOptimizationImporter
fis
- the InputStreamexistingOpti
- the existing iOptimizationexistingNodeConnector
- an existing node connectorexistingProperties
- the existing propertiesisOnlyPropertyUpdate
- the boolean whether the IOptimization is only to be updated and no
other parameters resetpublic boolean update(InputStream fis, IOptimization existingOpti, Optional<INodeEdgeConnector> existingNodeConnector, Properties existingProperties, boolean isOnlyPropertyUpdate, boolean isIgnoreExistingSolution)
IOptimization
optionally with already existing INodeEdgeConnector
and properties
.
If the boolean
is true
, only the given properties
are being overwritten. If
false
the rest of the parameters
are set to default
.
update
in interface IOptimizationImporter
fis
- the InputStreamexistingOpti
- the existing iOptimizationexistingNodeConnector
- an existing node connectorexistingProperties
- the existing propertiesisOnlyPropertyUpdate
- the boolean whether the IOptimization is only to be updated and no other parameters resetisIgnoreExistingSolution
- the is ignore existing solutionCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.