use of org.openforis.idm.metamodel.Survey in project collect by openforis.
the class RelevanceDependencyGraph method determineSources.
@Override
protected Set<NodePathPointer> determineSources(NodePointer dependent) throws InvalidExpressionException {
NodeDefinition def = dependent.getChildDefinition();
Survey survey = def.getSurvey();
Set<NodePathPointer> relevanceSources = survey.getRelevanceSources(def);
return filterByVersion(relevanceSources, dependent.getModelVersion());
}
use of org.openforis.idm.metamodel.Survey in project collect by openforis.
the class RelevanceDependencyGraph method determineDependents.
@Override
protected Set<NodePathPointer> determineDependents(NodePointer source) throws InvalidExpressionException {
NodeDefinition def = source.getChildDefinition();
Survey survey = def.getSurvey();
Set<NodePathPointer> relevanceDependencies = survey.getRelevanceDependencies(def);
return filterByVersion(relevanceDependencies, source.getModelVersion());
}
use of org.openforis.idm.metamodel.Survey in project collect by openforis.
the class MaxCountDependencyGraph method determineSources.
@Override
protected Set<NodePathPointer> determineSources(NodePointer dependent) throws InvalidExpressionException {
NodeDefinition def = dependent.getChildDefinition();
Survey survey = def.getSurvey();
Set<NodePathPointer> sourcePointers = survey.getMaxCountSources(def);
return filterByVersion(sourcePointers, dependent.getModelVersion());
}
use of org.openforis.idm.metamodel.Survey in project collect by openforis.
the class MinCountDependencyGraph method determineSources.
@Override
protected Set<NodePathPointer> determineSources(NodePointer dependent) throws InvalidExpressionException {
NodeDefinition def = dependent.getChildDefinition();
Survey survey = def.getSurvey();
Set<NodePathPointer> minCountSources = survey.getMinCountSources(def);
return filterByVersion(minCountSources, dependent.getModelVersion());
}
use of org.openforis.idm.metamodel.Survey in project collect by openforis.
the class CalculatedAttributeDependencyGraph method determineSources.
@Override
protected Set<NodePathPointer> determineSources(Node<?> dependent) throws InvalidExpressionException {
Survey survey = dependent.getSurvey();
Set<NodePathPointer> sourcePointers = survey.getCalculatedValueSources(dependent.getDefinition());
return sourcePointers;
}
Aggregations