Mercurial > dive4elements > river
changeset 2121:70ef5fdc7414
Cosmetics, added new DataFacet constructor.
flys-artifacts/trunk@3691 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 17 Jan 2012 07:55:12 +0000 (2012-01-17) |
parents | f021080cb409 |
children | 81312f84689a |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DataFacet.java |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon Jan 16 17:38:39 2012 +0000 +++ b/flys-artifacts/ChangeLog Tue Jan 17 07:55:12 2012 +0000 @@ -1,3 +1,8 @@ +2012-01-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/model/DataFacet.java: + Cosmetics, added new constructor. + 2012-01-16 Sascha L. Teichmann <sascha.teichmann@intevation.de> Use improved caching for cross section data.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DataFacet.java Mon Jan 16 17:38:39 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DataFacet.java Tue Jan 17 07:55:12 2012 +0000 @@ -31,10 +31,12 @@ this(name, description, ComputeType.ADVANCE); } + public DataFacet(String name, String description, ComputeType type) { this(name, description, type, null); } + public DataFacet( String name, String description, @@ -61,6 +63,20 @@ } + public DataFacet( + int index, + String name, + String description, + ComputeType type, + String hash, + String stateId + ) { + super(index, name, description); + this.type = type; + this.hash = hash; + this.stateId = stateId; + } + /** * Return computation result. */