
io.github.hlfsousa.ncml.examples.ucararray.SampleModelVO Maven / Gradle / Ivy
package io.github.hlfsousa.ncml.examples.ucararray;
/*-
* #%L
* ncml-io
* %%
* Copyright (C) 2020 - 2021 Henrique L. F. de Sousa
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.1 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
// imports >>
// DEFAULT IMPORTS
import java.util.*;
import ucar.ma2.Array;
import ucar.nc2.Group;
import ucar.nc2.Variable;
import ucar.nc2.Dimension;
// << imports
public class SampleModelVO implements SampleModel {
public static class TemperatureMapVO implements TemperatureMapVariable {
private Float value;
@Override
public Float getValue() {
return value;
}
public void setValue(Float value) {
this.value = value;
}
public List getDimensions() {
return Collections.emptyList();
}
public void setDimensions(List dimensions) {
throw new UnsupportedOperationException("This is a scalar variable");
}
private String longName;
@Override
public String getLongName() {
return longName;
}
@Override
public void setLongName(String longName) {
this.longName = longName;
}
private String units;
@Override
public String getUnits() {
return units;
}
@Override
public void setUnits(String units) {
this.units = units;
}
}
// additionalFields >>
// << additionalFields
private Map> temperatureMap;
public Map> getTemperatureMap() {
return temperatureMap;
}
public void setTemperatureMap(Map> temperatureMap) {
this.temperatureMap = temperatureMap;
}
private String title;
@Override
public String getTitle() {
return title;
}
@Override
public void setTitle(String title) {
this.title = title;
}
private Map groupMap;
public Map getGroupMap() {
return groupMap;
}
public void setGroupMap(Map groupMap) {
this.groupMap = groupMap;
}
// additionalMethods >>
// << additionalMethods
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy