private void calculateFieldProductionEdges
(ResourceNode<FieldResourceProductionMapping> source,
FieldResourceProducer producer) {
SetResourceEdgeAmount change = new SetResourceEdgeAmount();
Iterator<ResourceEdge<FieldResourceProductionMapping, ? extends ResourceNodeManager>> edgeIterator
= source.getOutEdgeIterator();
while (edgeIterator.hasNext()) {
ResourceEdge<FieldResourceProductionMapping, ? extends ResourceNodeManager> edge = edgeIterator.next();
Field field = (Field)(edge.getDestNode().getManager());
ResourceSet amount = producer.getResourceProduction(field.getPosition());
change.add(edge.getID(), amount);
}
change.execute();
}