Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/FixAnalysisYearXPathFunction.java @ 9546:abf4d0b10270
FlowDepths: DataCage AWSPL from "Betrieb und Unterhaltung"
author | gernotbelger |
---|---|
date | Fri, 19 Oct 2018 13:34:11 +0200 |
parents | 2d4750874c57 |
children |
comparison
equal
deleted
inserted
replaced
9545:f303d693a70f | 9546:abf4d0b10270 |
---|---|
14 | 14 |
15 import javax.xml.xpath.XPathFunction; | 15 import javax.xml.xpath.XPathFunction; |
16 import javax.xml.xpath.XPathFunctionException; | 16 import javax.xml.xpath.XPathFunctionException; |
17 | 17 |
18 import org.dive4elements.artifacts.CallContext; | 18 import org.dive4elements.artifacts.CallContext; |
19 import org.dive4elements.river.artifacts.AbstractFixBunduArtifact; | |
19 import org.dive4elements.river.artifacts.D4EArtifact; | 20 import org.dive4elements.river.artifacts.D4EArtifact; |
20 import org.dive4elements.river.artifacts.FixationArtifact; | |
21 import org.dive4elements.river.artifacts.access.FixRealizingAccess; | 21 import org.dive4elements.river.artifacts.access.FixRealizingAccess; |
22 import org.dive4elements.river.artifacts.model.fixings.FixRealizingCalculationExtended; | 22 import org.dive4elements.river.artifacts.model.fixings.FixRealizingCalculationExtended; |
23 import org.dive4elements.river.utils.RiverUtils; | 23 import org.dive4elements.river.utils.RiverUtils; |
24 | 24 |
25 /** | 25 /** |
46 final UUID uuid = (UUID) args.get(0); | 46 final UUID uuid = (UUID) args.get(0); |
47 if (uuid == null) | 47 if (uuid == null) |
48 return null; | 48 return null; |
49 | 49 |
50 final D4EArtifact artifact = RiverUtils.getArtifact(uuid.toString(), this.context); | 50 final D4EArtifact artifact = RiverUtils.getArtifact(uuid.toString(), this.context); |
51 if (!(artifact instanceof FixationArtifact)) | 51 if (!(artifact instanceof AbstractFixBunduArtifact)) |
52 return null; | 52 return null; |
53 | 53 |
54 final FixationArtifact fixation = (FixationArtifact) artifact; | 54 final AbstractFixBunduArtifact fixation = (AbstractFixBunduArtifact) artifact; |
55 | 55 |
56 // Get W/Q input per gauge for this case. | 56 // Get W/Q input per gauge for this case. |
57 final FixRealizingAccess fixAccess = new FixRealizingAccess(fixation); | 57 final FixRealizingAccess fixAccess = new FixRealizingAccess(fixation); |
58 | 58 |
59 /* ugly but necessary to keep this logic at least a bit inside the FixRealizing stuff */ | 59 /* ugly but necessary to keep this logic at least a bit inside the FixRealizing stuff */ |