public class ModelerUtil extends BaseUtil
| Modifier and Type | Class and Description |
|---|---|
static class |
ModelerUtil.CommonWeightLimitsType |
static class |
ModelerUtil.KPIValuesType |
| Modifier and Type | Field and Description |
|---|---|
static Long |
STATUS_FAILED_KPI |
static Long |
STATUS_PENDING_KPI |
static Long |
STATUS_READY |
| Constructor and Description |
|---|
ModelerUtil() |
| Modifier and Type | Method and Description |
|---|---|
gr.i2s.fishgrowth.model.Modeler |
add(gr.i2s.fishgrowth.model.Modeler modeler) |
gr.i2s.fishgrowth.model.Modeler |
add(gr.i2s.fishgrowth.model.Modeler modeler,
boolean createSamples) |
gr.i2s.fishgrowth.model.Modeler |
add(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Modeler modeler) |
gr.i2s.fishgrowth.model.Modeler |
add(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Modeler modeler,
boolean createSamples) |
void |
cleanKPIs(Long id) |
void |
cleanKPIs(org.hibernate.Session session,
Long id) |
int |
cleanSampleData(org.hibernate.Session session,
Long id) |
int |
cleanWeightLimits(org.hibernate.Session session,
Long id) |
boolean |
delete(Long id) |
boolean |
delete(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Modeler modeler) |
Collection |
getCommonKPIValues(org.hibernate.Session session,
Integer kpiKind,
Collection<Double> commonWeightLimits,
Collection<Long> modelIds) |
Map<Integer,Collection<Double>> |
getCommonWeightLimits(org.hibernate.Session session,
Collection<Long> modelIds) |
gr.i2s.fishgrowth.model.Modeler |
getGlobal(org.hibernate.Session session,
Long id) |
gr.i2s.fishgrowth.model.Modeler |
getModeler(Long id) |
gr.i2s.fishgrowth.model.Modeler |
getModeler(org.hibernate.Session session,
Long id) |
List<Long> |
getModelerIdsForSites(org.hibernate.Session session,
Long speciesId,
List<Long> siteids) |
List<gr.i2s.fishgrowth.model.Modeler> |
getModelers(String ownerId,
List<Long> statuses) |
List<gr.i2s.fishgrowth.model.Modeler> |
getModelersForSite(org.hibernate.Session session,
Long siteid) |
List<gr.i2s.fishgrowth.model.SampleData> |
getSampleData(org.hibernate.Session session,
Long simulModelId) |
List<gr.i2s.fishgrowth.model.Usage> |
getUsage(String ownerId) |
List<gr.i2s.fishgrowth.model.WeightLimit> |
getWeightLimits(org.hibernate.Session session,
Long simulModelId) |
String |
markOutliers(org.hibernate.Session session,
long modelid) |
gr.i2s.fishgrowth.model.Modeler |
update(gr.i2s.fishgrowth.model.Modeler modeler) |
gr.i2s.fishgrowth.model.Modeler |
update(gr.i2s.fishgrowth.model.Modeler modeler,
boolean createSamples) |
gr.i2s.fishgrowth.model.Modeler |
update(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Modeler modeler,
boolean createSamples) |
int |
updateStatusOnSite(org.hibernate.Session session,
Long siteId,
Long statusId) |
public static final Long STATUS_READY
public static final Long STATUS_PENDING_KPI
public static final Long STATUS_FAILED_KPI
public gr.i2s.fishgrowth.model.Modeler add(gr.i2s.fishgrowth.model.Modeler modeler)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Modeler add(gr.i2s.fishgrowth.model.Modeler modeler,
boolean createSamples)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Modeler add(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Modeler modeler)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Modeler add(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Modeler modeler,
boolean createSamples)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Modeler update(gr.i2s.fishgrowth.model.Modeler modeler)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Modeler update(gr.i2s.fishgrowth.model.Modeler modeler,
boolean createSamples)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Modeler update(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Modeler modeler,
boolean createSamples)
throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Modeler getModeler(Long id) throws Exception
Exceptionpublic gr.i2s.fishgrowth.model.Modeler getModeler(org.hibernate.Session session,
Long id)
throws Exception
Exceptionpublic List<gr.i2s.fishgrowth.model.Modeler> getModelers(String ownerId, List<Long> statuses) throws Exception
Exceptionpublic void cleanKPIs(org.hibernate.Session session,
Long id)
public String markOutliers(org.hibernate.Session session, long modelid) throws Exception
session - modelid - Exceptionpublic List<gr.i2s.fishgrowth.model.Modeler> getModelersForSite(org.hibernate.Session session, Long siteid)
public List<Long> getModelerIdsForSites(org.hibernate.Session session, Long speciesId, List<Long> siteids)
public List<gr.i2s.fishgrowth.model.WeightLimit> getWeightLimits(org.hibernate.Session session, Long simulModelId)
public int cleanSampleData(org.hibernate.Session session,
Long id)
public int cleanWeightLimits(org.hibernate.Session session,
Long id)
public boolean delete(org.hibernate.Session session,
gr.i2s.fishgrowth.model.Modeler modeler)
public List<gr.i2s.fishgrowth.model.Usage> getUsage(String ownerId) throws Exception
Exceptionpublic Map<Integer,Collection<Double>> getCommonWeightLimits(org.hibernate.Session session, Collection<Long> modelIds) throws Exception
session - modelIds - Exceptionpublic Collection getCommonKPIValues(org.hibernate.Session session, Integer kpiKind, Collection<Double> commonWeightLimits, Collection<Long> modelIds) throws Exception
session - kpiKind - modelIds - Exceptionpublic int updateStatusOnSite(org.hibernate.Session session,
Long siteId,
Long statusId)
public gr.i2s.fishgrowth.model.Modeler getGlobal(org.hibernate.Session session,
Long id)
Copyright © 2019. All Rights Reserved.