Package nz.org.riskscape.engine
Class DefaultProject
java.lang.Object
nz.org.riskscape.engine.DefaultIdentifiedLocator
nz.org.riskscape.engine.DefaultProject
- All Implemented Interfaces:
nz.org.riskscape.engine.IdentifiedLocator
,nz.org.riskscape.engine.Project
public class DefaultProject
extends DefaultIdentifiedLocator
implements nz.org.riskscape.engine.Project
-
Constructor Summary
ConstructorDescriptionDefaultProject
(nz.org.riskscape.engine.Engine engine, nz.org.riskscape.config.Config config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(nz.org.riskscape.engine.data.Bookmark bookmark) void
add
(nz.org.riskscape.engine.function.IdentifiedFunction function) nz.org.riskscape.engine.data.Bookmarks
<T extends nz.org.riskscape.engine.Identified>
nz.org.riskscape.engine.IdentifiedCollection<T>getCollectionByClass
(Class<T> collectionClass) nz.org.riskscape.config.Config
org.geotools.api.referencing.crs.CoordinateReferenceSystem
nz.org.riskscape.engine.Engine
nz.org.riskscape.engine.FunctionSet
nz.org.riskscape.engine.geo.GeometryValidation
nz.org.riskscape.engine.IdentifiedCollection<nz.org.riskscape.engine.model.IdentifiedModel>
nz.org.riskscape.engine.IdentifiedCollection<nz.org.riskscape.engine.bind.UserDefinedParameter>
final nz.org.riskscape.problem.ProblemSink
Maintains a mapping of normalized structs, to avoid object proliferation.nz.org.riskscape.engine.SRIDSet
nz.org.riskscape.engine.typexp.TypeBuilder
nz.org.riskscape.engine.typeset.TypeSet
boolean
hasCollectionOf
(Class<? extends nz.org.riskscape.engine.Identified> identifiedClass) nz.org.riskscape.engine.bind.BindingContext
nz.org.riskscape.engine.bind.BindingContext
newBindingContext
(nz.org.riskscape.engine.rl.RealizationContext realizationContext) nz.org.riskscape.engine.rl.RealizationContext
void
setDefaultCrs
(org.geotools.api.referencing.crs.CoordinateReferenceSystem defaultCrs) void
setGeometryValidation
(nz.org.riskscape.engine.geo.GeometryValidation mode) void
setOutputBaseLocation
(URI outputBaseLocation) void
setRelativeTo
(URI relativeTo) void
Methods inherited from class nz.org.riskscape.engine.DefaultIdentifiedLocator
getCollection, put, registerCollection, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.IdentifiedLocator
getCollection
Methods inherited from interface nz.org.riskscape.engine.Project
newExecutionContext
-
Constructor Details
-
DefaultProject
public DefaultProject(nz.org.riskscape.engine.Engine engine, nz.org.riskscape.config.Config config)
-
-
Method Details
-
validate
- Specified by:
validate
in interfacenz.org.riskscape.engine.Project
-
newBindingContext
public nz.org.riskscape.engine.bind.BindingContext newBindingContext()- Specified by:
newBindingContext
in interfacenz.org.riskscape.engine.Project
-
newBindingContext
public nz.org.riskscape.engine.bind.BindingContext newBindingContext(nz.org.riskscape.engine.rl.RealizationContext realizationContext) - Specified by:
newBindingContext
in interfacenz.org.riskscape.engine.Project
-
add
public void add(nz.org.riskscape.engine.data.Bookmark bookmark) - Specified by:
add
in interfacenz.org.riskscape.engine.Project
-
add
public void add(nz.org.riskscape.engine.function.IdentifiedFunction function) - Specified by:
add
in interfacenz.org.riskscape.engine.Project
-
getOutputBaseLocation
- Specified by:
getOutputBaseLocation
in interfacenz.org.riskscape.engine.Project
-
getTypeBuilder
public nz.org.riskscape.engine.typexp.TypeBuilder getTypeBuilder()- Specified by:
getTypeBuilder
in interfacenz.org.riskscape.engine.Project
-
newRealizationContext
public nz.org.riskscape.engine.rl.RealizationContext newRealizationContext()- Specified by:
newRealizationContext
in interfacenz.org.riskscape.engine.Project
-
getRelativeTo
Maintains a mapping of normalized structs, to avoid object proliferation. When two different structs are equal (i.e. Object#equals), then when normalized they end up as the exact same object (i.e. Object ==). The first struct normalized populates the map, then subsequent key lookups of equivalent structs (Object#equals) will return the first canonical struct.
- Specified by:
getRelativeTo
in interfacenz.org.riskscape.engine.Project
-
hasCollectionOf
- Specified by:
hasCollectionOf
in interfacenz.org.riskscape.engine.IdentifiedLocator
- Overrides:
hasCollectionOf
in classDefaultIdentifiedLocator
-
getCollectionByClass
public <T extends nz.org.riskscape.engine.Identified> nz.org.riskscape.engine.IdentifiedCollection<T> getCollectionByClass(Class<T> collectionClass) - Specified by:
getCollectionByClass
in interfacenz.org.riskscape.engine.IdentifiedLocator
- Overrides:
getCollectionByClass
in classDefaultIdentifiedLocator
-
getCollectionClasses
- Specified by:
getCollectionClasses
in interfacenz.org.riskscape.engine.IdentifiedLocator
- Overrides:
getCollectionClasses
in classDefaultIdentifiedLocator
-
getProblemSink
public final nz.org.riskscape.problem.ProblemSink getProblemSink()- Specified by:
getProblemSink
in interfacenz.org.riskscape.engine.Project
-
setGeometryValidation
public void setGeometryValidation(nz.org.riskscape.engine.geo.GeometryValidation mode) - Specified by:
setGeometryValidation
in interfacenz.org.riskscape.engine.Project
-
getEngine
public nz.org.riskscape.engine.Engine getEngine()- Specified by:
getEngine
in interfacenz.org.riskscape.engine.Project
-
getSridSet
public nz.org.riskscape.engine.SRIDSet getSridSet()- Specified by:
getSridSet
in interfacenz.org.riskscape.engine.Project
-
getConfig
public nz.org.riskscape.config.Config getConfig()- Specified by:
getConfig
in interfacenz.org.riskscape.engine.Project
-
getDefaultCrs
public org.geotools.api.referencing.crs.CoordinateReferenceSystem getDefaultCrs()- Specified by:
getDefaultCrs
in interfacenz.org.riskscape.engine.Project
-
setDefaultCrs
public void setDefaultCrs(org.geotools.api.referencing.crs.CoordinateReferenceSystem defaultCrs) -
setRelativeTo
- Specified by:
setRelativeTo
in interfacenz.org.riskscape.engine.Project
-
setOutputBaseLocation
- Specified by:
setOutputBaseLocation
in interfacenz.org.riskscape.engine.Project
-
getGeometryValidation
public nz.org.riskscape.engine.geo.GeometryValidation getGeometryValidation()- Specified by:
getGeometryValidation
in interfacenz.org.riskscape.engine.Project
-
getBookmarks
public nz.org.riskscape.engine.data.Bookmarks getBookmarks()- Specified by:
getBookmarks
in interfacenz.org.riskscape.engine.Project
-
getFunctionSet
public nz.org.riskscape.engine.FunctionSet getFunctionSet()- Specified by:
getFunctionSet
in interfacenz.org.riskscape.engine.Project
-
getTypeSet
public nz.org.riskscape.engine.typeset.TypeSet getTypeSet()- Specified by:
getTypeSet
in interfacenz.org.riskscape.engine.Project
-
getIdentifiedModels
public nz.org.riskscape.engine.IdentifiedCollection<nz.org.riskscape.engine.model.IdentifiedModel> getIdentifiedModels()- Specified by:
getIdentifiedModels
in interfacenz.org.riskscape.engine.Project
-
getParameterTemplates
public nz.org.riskscape.engine.IdentifiedCollection<nz.org.riskscape.engine.bind.UserDefinedParameter> getParameterTemplates()- Specified by:
getParameterTemplates
in interfacenz.org.riskscape.engine.Project
-