public class ExtLayerCalculator extends LayerCalculator
Deze extra mogelijkheden zijn nodig voor WMS layers omdat deze genest kunnen zijn.
LayerCalculatorem, identity| Constructor and Description |
|---|
ExtLayerCalculator()
Constructor met eigen Entitymanager
|
| Modifier and Type | Method and Description |
|---|---|
protected BigDecimal |
addToLayerPrice(BigDecimal returnValue,
BigDecimal addValue)
Deze methode telt 2 prijs BigDecimals op.
|
protected BigDecimal |
calculateChildLayers(nl.b3p.wms.capabilities.Layer layer,
Date validationDate,
String projection,
BigDecimal scale,
BigDecimal units,
int planType,
String service,
String operation)
Deze methode probeert de prijs van een layer te bepalen op basis van prijzen
van child layers.
|
protected BigDecimal |
calculateLayer(LayerPriceComposition tLC,
String spAbbr,
String layerName,
Date validationDate,
String projection,
BigDecimal scale,
BigDecimal units,
int planType,
String service,
String operation)
Deze methode verwijst naar methode waar het echte werk wordt gedaan.
|
protected BigDecimal |
calculateParentAndChildLayers(LayerPriceComposition tLC,
String spAbbr,
String layerName,
Date validationDate,
String projection,
BigDecimal scale,
BigDecimal units,
int planType,
String service,
String operation)
Deze methode wordt aangeroepen indien in de kaartlaag zelf geen prijsinfo
is gevonden.
|
protected BigDecimal |
calculateParentLayer(nl.b3p.wms.capabilities.Layer layer,
Date validationDate,
String projection,
BigDecimal scale,
BigDecimal units,
int planType,
String service,
String operation)
Deze methode probeert de prijs van een layer te bepalen op basis van een
prijs van een parent layer.
|
protected nl.b3p.wms.capabilities.Layer |
getWMSLayer(String spAbbr,
String layerName) |
ActiveLayerPricingExists, calculateLayer, calculateLayerComplete, closeEntityManager, getActiveLayerPricing, getActiveLayerPricingList, getSpLayerPricingListprotected nl.b3p.wms.capabilities.Layer getWMSLayer(String spAbbr, String layerName)
spAbbr - layerName - protected BigDecimal calculateLayer(LayerPriceComposition tLC, String spAbbr, String layerName, Date validationDate, String projection, BigDecimal scale, BigDecimal units, int planType, String service, String operation) throws LayerNotAvailableException, NoPrizingException
LayerCalculatorcalculateLayer in class LayerCalculatortLC - spAbbr - layerName - validationDate - projection - scale - units - planType - service - operation - LayerNotAvailableExceptionNoPrizingExceptionprotected BigDecimal calculateParentAndChildLayers(LayerPriceComposition tLC, String spAbbr, String layerName, Date validationDate, String projection, BigDecimal scale, BigDecimal units, int planType, String service, String operation) throws NoPrizingException
Deze methode wordt alleen aangeroepen voor WMS omdat daar geneste layers mogelijk zijn.
tLC - spAbbr - layerName - validationDate - projection - scale - units - planType - service - operation - NoPrizingExceptionprotected BigDecimal addToLayerPrice(BigDecimal returnValue, BigDecimal addValue)
returnValue - addValue - protected BigDecimal calculateChildLayers(nl.b3p.wms.capabilities.Layer layer, Date validationDate, String projection, BigDecimal scale, BigDecimal units, int planType, String service, String operation) throws NoPrizingException
Alle child layers worden doorlopen. Als een child layer geen prijs heeft, dan wordt voor dat child recursief onderzocht of childs daarvan een prijs heeft.
layer - validationDate - projection - scale - units - planType - service - operation - NoPrizingExceptionprotected BigDecimal calculateParentLayer(nl.b3p.wms.capabilities.Layer layer, Date validationDate, String projection, BigDecimal scale, BigDecimal units, int planType, String service, String operation) throws NoPrizingException
layer - validationDate - projection - scale - units - planType - service - operation - NoPrizingExceptionCopyright © 2016. All rights reserved.