public class ScenarioUtil extends BaseUtil
| Modifier and Type | Field and Description |
|---|---|
static int |
KIND_EXECUTOR_GLOBAL_MODEL |
static int |
KIND_EXECUTOR_OWN_DATA |
| Constructor and Description |
|---|
ScenarioUtil() |
| Modifier and Type | Method and Description |
|---|---|
gr.i2s.fishgrowth.model.Scenario |
add(gr.i2s.fishgrowth.model.Scenario scenario) |
gr.i2s.fishgrowth.model.Scenario |
add(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Scenario scenario) |
boolean |
delete(Long id) |
boolean |
delete(org.hibernate.Session session,
Long id) |
String |
executeConsumptionScenario(org.hibernate.Session session,
String from,
String to,
Integer weight,
Integer count,
Long modelId) |
String |
executeConsumptionScenario(org.hibernate.Session session,
String from,
String to,
Integer weight,
Integer count,
String latitude,
String longitude,
Long speciesId,
Integer acceptableSiteCount,
Integer upToGrade) |
String |
executeConsumptionScenario(String from,
String to,
Integer weight,
Integer count,
Long modelId)
create a session and call executeConsumptionScenario(Session session,
String from, String to, Integer weight, Integer count, Long modelId)
|
String |
executeConsumptionScenario(String from,
String to,
Integer weight,
Integer count,
String latitude,
String longitude,
Long speciesId,
Integer acceptableSiteCount,
Integer upToGrade) |
gr.i2s.fishgrowth.model.Scenario |
executeScenario(Long id) |
gr.i2s.fishgrowth.model.Scenario |
executeScenario(org.hibernate.Session session,
Long id)
if session is null then everyone who wants a session is responsible to
create and release it
|
gr.i2s.fishgrowth.model.Scenario |
executeScenario(org.hibernate.Session session,
Long id,
GlobalModelWrapper globalModel) |
gr.i2s.fishgrowth.model.Scenario |
executeScenario(org.hibernate.Session session,
Long id,
int kind)
execute scenario based on KIND method
|
gr.i2s.fishgrowth.model.Scenario |
getScenario(Long id) |
gr.i2s.fishgrowth.model.Scenario |
getScenario(org.hibernate.Session session,
Long id) |
List<gr.i2s.fishgrowth.model.Scenario> |
getScenarios(String ownerId) |
ScenarioUtil |
setAdditionalSimilarityConstraint(String additionalSimilarityConstraint) |
ScenarioUtil |
setCache(javax.cache.Cache<String,String> cache) |
ScenarioUtil |
setOxygenRetriever(gr.cite.geoanalytics.environmental.data.retriever.OxygenRetriever oxygenRetriever) |
ScenarioUtil |
setTemperatureRetriever(gr.cite.geoanalytics.environmental.data.retriever.TemperatureRetriever temperatureRetriever) |
gr.i2s.fishgrowth.model.Scenario |
update(gr.i2s.fishgrowth.model.Scenario scenario) |
gr.i2s.fishgrowth.model.Scenario |
update(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Scenario scenario) |
int |
updateStatusOnSite(org.hibernate.Session session,
Long siteId,
Long statusId) |
public static final int KIND_EXECUTOR_OWN_DATA
public static final int KIND_EXECUTOR_GLOBAL_MODEL
public ScenarioUtil setAdditionalSimilarityConstraint(String additionalSimilarityConstraint)
public ScenarioUtil setCache(javax.cache.Cache<String,String> cache)
public ScenarioUtil setTemperatureRetriever(gr.cite.geoanalytics.environmental.data.retriever.TemperatureRetriever temperatureRetriever)
public ScenarioUtil setOxygenRetriever(gr.cite.geoanalytics.environmental.data.retriever.OxygenRetriever oxygenRetriever)
public gr.i2s.fishgrowth.model.Scenario add(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Scenario scenario)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Scenario add(gr.i2s.fishgrowth.model.Scenario scenario)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Scenario update(gr.i2s.fishgrowth.model.Scenario scenario)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Scenario update(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Scenario scenario)
throws Exception
Exceptionpublic boolean delete(org.hibernate.Session session,
Long id)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Scenario getScenario(Long id) throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Scenario getScenario(org.hibernate.Session session,
Long id)
throws Exception
Exceptionpublic List<gr.i2s.fishgrowth.model.Scenario> getScenarios(String ownerId) throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Scenario executeScenario(Long id) throws Exception
id - Exceptionpublic gr.i2s.fishgrowth.model.Scenario executeScenario(org.hibernate.Session session,
Long id)
throws Exception
session - id - Exceptionpublic gr.i2s.fishgrowth.model.Scenario executeScenario(org.hibernate.Session session,
Long id,
int kind)
throws Exception
id - kind - Exceptionpublic gr.i2s.fishgrowth.model.Scenario executeScenario(org.hibernate.Session session,
Long id,
GlobalModelWrapper globalModel)
throws Exception
Exceptionpublic String executeConsumptionScenario(String from, String to, Integer weight, Integer count, Long modelId) throws Exception
from - to - weight - count - modelId - Exceptionpublic String executeConsumptionScenario(org.hibernate.Session session, String from, String to, Integer weight, Integer count, Long modelId) throws Exception
Exceptionpublic String executeConsumptionScenario(String from, String to, Integer weight, Integer count, String latitude, String longitude, Long speciesId, Integer acceptableSiteCount, Integer upToGrade) throws Exception
Exceptionpublic String executeConsumptionScenario(org.hibernate.Session session, String from, String to, Integer weight, Integer count, String latitude, String longitude, Long speciesId, Integer acceptableSiteCount, Integer upToGrade) throws Exception
ExceptionCopyright © 2017. All Rights Reserved.