Commit 6fe03772 authored by Rushikesh Padsala's avatar Rushikesh Padsala
Browse files

Merge branch 'beta7' into 'master'

Initial commit

See merge request energy-ade/energy-ade-2-citygml4j!1
parents ae6f88db 43f73dc0
package org.citygml4j.ade.energy.model.supportingClasses;
public class Transmittance {
private WavelengthRange wavelengthRange;
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.common.visitor.FeatureFunctor;
import org.citygml4j.model.common.visitor.FeatureVisitor;
import org.citygml4j.model.gml.basicTypes.MeasureList;
import java.sql.Timestamp;
import java.time.LocalTime;
public class TypicalValuesTimeSeries extends AbstractTimeSeries {
private TimeIntervalLength temporalExtent;
private TimeIntervalLength timeInterval;
private MeasureList values;
private LocalTime startTime;
private Integer startDay;
private Integer startMonth;
public LocalTime getStartTime() {
return startTime;
}
public TimeIntervalLength getTemporalExtent() {
return temporalExtent;
}
public TimeIntervalLength getTimeInterval() {
return timeInterval;
}
public MeasureList getValues() {
return values;
}
public Integer getStartDay() {
return startDay;
}
public Integer getStartMonth() {
return startMonth;
}
public boolean isSetTemporalExtent() {
return temporalExtent != null;
}
public void setTemporalExtent(TimeIntervalLength timeIntervalLength) {
if (temporalExtent != null)
temporalExtent.setParent(this);
this.temporalExtent = timeIntervalLength;
}
public boolean isSetTimeInterval() {
return timeInterval != null;
}
public void setTimeInterval(TimeIntervalLength timeInterval) {
if (timeInterval != null)
timeInterval.setParent(this);
this.timeInterval = timeInterval;
}
public boolean isSetValues() {
return values != null;
}
public void setValues(MeasureList values) {
if (values != null)
values.setParent(this);
this.values = values;
}
public void setStartMonth(Integer startMonth) {
this.startMonth = startMonth;
}
public void setStartDay(Integer startDay) {
this.startDay = startDay;
}
public void setStartTime(LocalTime startTime) {
this.startTime = startTime;
}
public boolean isSetStartTime() {
return startTime != null;
}
public boolean isSetStartDay() {
return startDay != null;
}
public boolean isSetStartMonth() {
return startMonth != null;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new TypicalValuesTimeSeries(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
TypicalValuesTimeSeries copy = (target == null) ? new TypicalValuesTimeSeries() : (TypicalValuesTimeSeries) target;
if (isSetTemporalExtent())
copy.setTemporalExtent((TimeIntervalLength) copyBuilder.copy(temporalExtent));
if (isSetTimeInterval())
copy.setTimeInterval((TimeIntervalLength) copyBuilder.copy(timeInterval));
if (isSetValues())
copy.setValues((MeasureList) copyBuilder.copy(values));
if (isSetStartMonth())
copy.setStartMonth((Integer) copyBuilder.copy(startMonth));
if (isSetStartDay())
copy.setStartDay((Integer) copyBuilder.copy(startDay));
if (isSetStartTime())
copy.setStartTime((LocalTime) copyBuilder.copy(startTime));
return super.copyTo(copy, copyBuilder);
}
@Override
public void accept(FeatureVisitor featureVisitor) {
featureVisitor.visit(this);
}
@Override
public <T> T accept(FeatureFunctor<T> featureFunctor) {
return featureFunctor.apply(this);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.common.visitor.FeatureFunctor;
import org.citygml4j.model.common.visitor.FeatureVisitor;
import org.citygml4j.model.gml.measures.Time;
import java.net.URI;
import java.time.ZonedDateTime;
public class TypicalValuesTimeSeriesFile extends AbstractTimeSeries {
private ZonedDateTime startTime;
private Integer startDay;
private Integer startMonth;
private String uom;
private URI fileURI;
private TimeIntervalLength temporalExtent;
private TimeIntervalLength timeInterval;
private Integer numberOfHeaderLines;
private String fieldSeparator;
private String recordSeparator;
private String decimalSymbol;
private Integer valueColumnNumber;
public String getRecordSeparator() {
return recordSeparator;
}
public void setRecordSeparator(String recordSeparator) {
this.recordSeparator = recordSeparator;
}
public ZonedDateTime getStartTime() {
return startTime;
}
public void setStartTime(ZonedDateTime startTime) {
this.startTime = startTime;
}
public Integer getStartDay() {
return startDay;
}
public void setStartDay(Integer startDay) {
this.startDay = startDay;
}
public Integer getStartMonth() {
return startMonth;
}
public void setStartMonth(Integer startMonth) {
this.startMonth = startMonth;
}
public String getUom() {
return uom;
}
public void setUom(String uom) {
this.uom = uom;
}
public URI getFileURI() {
return fileURI;
}
public void setFileURI(URI fileURI) {
this.fileURI = fileURI;
}
public TimeIntervalLength getTemporalExtent() {
return temporalExtent;
}
public void setTemporalExtent(TimeIntervalLength temporalExtent) {
this.temporalExtent = temporalExtent;
}
public TimeIntervalLength getTimeInterval() {
return timeInterval;
}
public void setTimeInterval(TimeIntervalLength timeInterval) {
this.timeInterval = timeInterval;
}
public Integer getNumberOfHeaderLines() {
return numberOfHeaderLines;
}
public void setNumberOfHeaderLines(Integer numberOfHeaderLines) {
this.numberOfHeaderLines = numberOfHeaderLines;
}
public String getFieldSeparator() {
return fieldSeparator;
}
public void setFieldSeparator(String fieldSeparator) {
this.fieldSeparator = fieldSeparator;
}
public String getDecimalSymbol() {
return decimalSymbol;
}
public void setDecimalSymbol(String decimalSymbol) {
this.decimalSymbol = decimalSymbol;
}
public Integer getValueColumnNumber() {
return valueColumnNumber;
}
public void setValueColumnNumber(Integer valueColumnNumber) {
this.valueColumnNumber = valueColumnNumber;
}
public boolean isSetFileURI() {
return fileURI != null;
}
public boolean isSetUom(){ return uom != null;}
public boolean isSetTemporalExtent(){ return temporalExtent != null;}
public boolean isSetTimeInterval(){ return timeInterval != null;}
public boolean isSetNumberOfHeaderLines(){ return numberOfHeaderLines != null;}
public boolean isSetFieldSeparator(){ return fieldSeparator != null;}
public boolean isSetRecordSeparator(){ return recordSeparator != null;}
public boolean isSetDecimalSymbol(){ return decimalSymbol != null;}
public boolean isSetValueColumnNumber(){ return valueColumnNumber != null;}
public boolean isSetStartTime(){ return startTime != null;}
public boolean isSetStartDay(){ return startDay != null;}
public boolean isSetStartMonth(){ return startMonth != null;}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new TypicalValuesTimeSeriesFile(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
TypicalValuesTimeSeriesFile copy = (target == null) ? new TypicalValuesTimeSeriesFile() : (TypicalValuesTimeSeriesFile) target;
if (isSetFileURI())
copy.setFileURI(fileURI);
if (isSetTemporalExtent())
copy.setTemporalExtent((TimeIntervalLength) copyBuilder.copy(temporalExtent));
if (isSetTimeInterval())
copy.setTimeInterval((TimeIntervalLength) copyBuilder.copy(timeInterval));
if (isSetNumberOfHeaderLines())
copy.setNumberOfHeaderLines(numberOfHeaderLines);
if (isSetFieldSeparator())
copy.setFieldSeparator(copyBuilder.copy(fieldSeparator));
if (isSetRecordSeparator())
copy.setRecordSeparator(copyBuilder.copy(recordSeparator));
if (isSetDecimalSymbol())
copy.setDecimalSymbol(copyBuilder.copy(decimalSymbol));
if (isSetValueColumnNumber())
copy.setValueColumnNumber(valueColumnNumber);
return super.copyTo(copy, copyBuilder);
}
@Override
public void accept(FeatureVisitor featureVisitor) {
featureVisitor.visit(this);
}
@Override
public <T> T accept(FeatureFunctor<T> featureFunctor) {
return featureFunctor.apply(this);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.gml.base.AssociationByRepOrRef;
public class TypicalValuesTimeSeriesFileProperty extends AssociationByRepOrRef<TypicalValuesTimeSeriesFile> implements ADEModelObject {
public TypicalValuesTimeSeriesFileProperty() {
}
public TypicalValuesTimeSeriesFileProperty(TypicalValuesTimeSeriesFile typicalValuesTimeSeriesFile) {
super(typicalValuesTimeSeriesFile);
}
public TypicalValuesTimeSeriesFile getTypicalValuesTimeSeriesFile() {
return super.getObject();
}
public boolean isSetTypicalValuesTimeSeriesFile() {
return super.isSetObject();
}
public void setTypicalValuesTimeSeriesFile(TypicalValuesTimeSeriesFile typicalValuesTimeSeriesFile) {
super.setObject(typicalValuesTimeSeriesFile);
}
public void unsetTypicalValuesTimeSeries() {
super.unsetObject();
}
@Override
public Class<TypicalValuesTimeSeriesFile> getAssociableClass() {
return TypicalValuesTimeSeriesFile.class;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new TypicalValuesTimeSeriesFileProperty(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
TypicalValuesTimeSeriesFileProperty copy = (target == null) ? new TypicalValuesTimeSeriesFileProperty() : (TypicalValuesTimeSeriesFileProperty) target;
return super.copyTo(copy, copyBuilder);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.gml.base.AssociationByRepOrRef;
public class TypicalValuesTimeSeriesProperty extends AssociationByRepOrRef<TypicalValuesTimeSeries> implements ADEModelObject {
public TypicalValuesTimeSeriesProperty() {
}
public TypicalValuesTimeSeriesProperty(TypicalValuesTimeSeries typicalValuesTimeSeries) {
super(typicalValuesTimeSeries);
}
public TypicalValuesTimeSeries getTypicalValuesTimeSeries() {
return super.getObject();
}
public boolean isSetTypicalValuesTimeSeriesProperty() {
return super.isSetObject();
}
public void setTypicalValuesTimeSeries(TypicalValuesTimeSeries typicalValuesTimeSeries) {
super.setObject(typicalValuesTimeSeries);
}
public void unsetTypicalValuesTimeSeries() {
super.unsetObject();
}
@Override
public Class<TypicalValuesTimeSeries> getAssociableClass() {
return TypicalValuesTimeSeries.class;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new TypicalValuesTimeSeriesProperty(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
TypicalValuesTimeSeriesProperty copy = (target == null) ? new TypicalValuesTimeSeriesProperty() : (TypicalValuesTimeSeriesProperty) target;
return super.copyTo(copy, copyBuilder);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.citygml.cityobjectgroup.CityObjectGroup;
import org.citygml4j.model.gml.basicTypes.Code;
public class UrbanFunctionArea extends CityObjectGroup implements ADEModelObject {
private Code type;
private Code code;
public Code getType() {
return type;
}
public void setType(Code type) {
this.type = type;
}
public Code getCode() {
return code;
}
public void setCode(Code code) {
this.code = code;
}
public boolean isSetType() {
return type != null;
}
public boolean isSetCode() {
return code != null;
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.gml.feature.FeatureProperty;
public class UrbanFunctionAreaProperty extends FeatureProperty<UrbanFunctionArea> implements ADEModelObject {
public UrbanFunctionAreaProperty() {}
public UrbanFunctionAreaProperty(UrbanFunctionArea urbanFunctionArea) { super(urbanFunctionArea);}
public UrbanFunctionArea getUrbanFunctionArea() {return super.getObject();}
public UrbanFunctionAreaProperty(String href) {super(href);}
public boolean isSetUrbanFunctionArea() {return super.isSetObject();}
public void setUrbanFunctionArea(UrbanFunctionArea urbanFunctionArea) {
super.setObject(urbanFunctionArea);
}
public void unsetUrbanFunctionArea() {super.unsetObject();}
@Override
public Class<UrbanFunctionArea> getAssociableClass() {
return UrbanFunctionArea.class;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new UrbanFunctionAreaProperty(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
UrbanFunctionAreaProperty copy = (target == null) ? new UrbanFunctionAreaProperty() : (UrbanFunctionAreaProperty) target;
return super.copyTo(copy, copyBuilder);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.ade.energy.model.core.AbstractResource;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.common.visitor.FeatureFunctor;
import org.citygml4j.model.common.visitor.FeatureVisitor;
import org.citygml4j.model.gml.basicTypes.Code;
public class UrbanSpace extends AbstractResource implements ADEModelObject {
private Code type;
private Code endUse;
public Code getType() {
return type;
}
public void setType(Code type) {
this.type = type;
}
public Code getEndUse() {
return endUse;
}
public void setEndUse(Code endUse) {
this.endUse = endUse;
}
public Boolean isSetType() {
return type != null;
}
public Boolean isSetEndUse() { return endUse != null; }
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new UrbanSpace(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
UrbanSpace copy = (target == null) ? new UrbanSpace() : (UrbanSpace) target;
if (isSetType())
copy.setType((Code) copyBuilder.copy(type));
if (isSetEndUse())
copy.setEndUse((Code) copyBuilder.copy(endUse));
return super.copyTo(copy, copyBuilder);
}
@Override
public void accept(FeatureVisitor featureVisitor) {
featureVisitor.visit(this);
}
@Override
public <T> T accept(FeatureFunctor<T> featureFunctor) {
return featureFunctor.apply(this);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.gml.base.AssociationByRepOrRef;
public class UrbanSpaceProperty extends AssociationByRepOrRef<UrbanSpace> implements ADEModelObject {
public UrbanSpaceProperty() {
}
public UrbanSpaceProperty(UrbanSpace urbanSpace) {
super(urbanSpace);
}
public UrbanSpaceProperty(String href) {
super(href);
}
public UrbanSpace getUrbanSpace() {
return (UrbanSpace) super.getObject();
}
public boolean isSetUrbanSpace() {
return super.isSetObject();
}
public void setUrbanSpace(UrbanSpace urbanSpace) {
super.setObject(urbanSpace);
}
public void unsetUrbanSpace() {
super.unsetObject();
}
@Override
public Class<UrbanSpace> getAssociableClass() {
return UrbanSpace.class;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new UrbanSpaceProperty(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
UrbanSpaceProperty copy = (target == null) ? new UrbanSpaceProperty() : (UrbanSpaceProperty) target;
return super.copyTo(copy, copyBuilder);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.ade.energy.model.core.AbstractResource;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.common.visitor.FeatureFunctor;
import org.citygml4j.model.common.visitor.FeatureVisitor;
import org.citygml4j.model.common.visitor.GMLFunctor;
import org.citygml4j.model.common.visitor.GMLVisitor;
import org.citygml4j.model.gml.basicTypes.Code;
public class Waste extends AbstractResource implements ADEModelObject {
private Code wasteTypeValue;
private Code wasteEndUseValue;
private Boolean isDangerous;
private Boolean isRecyclable;
public Boolean isWasteTypeValue() {
return wasteTypeValue != null;
}
public Boolean isWasteEndUseValue() {
return wasteEndUseValue != null;
}
public Boolean isDangerous() {
return isDangerous;
}
public Boolean isRecyclable() {
return isRecyclable;
}
public Code getWasteEndUseValue() {
return wasteEndUseValue;
}
public void setWasteEndUseValue(Code wasteEndUseValue) {
this.wasteEndUseValue = wasteEndUseValue;
}
public Code getWasteTypeValue() {
return wasteTypeValue;
}
public void setWasteTypeValue(Code wasteTypeValue) {
this.wasteTypeValue = wasteTypeValue;
}
public Boolean getDangerous() {
return isDangerous;
}
public void setDangerous(Boolean dangerous) {
isDangerous = dangerous;
}
public Boolean getRecyclable() {
return isRecyclable;
}
public void setRecyclable(Boolean recyclable) {
isRecyclable = recyclable;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new Waste(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
Waste copy = (target == null) ? new Waste() : (Waste) target;
if (isWasteTypeValue())
copy.setWasteTypeValue((Code) copyBuilder.copy(wasteTypeValue));
if (isWasteEndUseValue())
copy.setWasteEndUseValue((Code) copyBuilder.copy(wasteEndUseValue));
if (isDangerous())
copy.setDangerous((Boolean) copyBuilder.copy(wasteEndUseValue));
if (isRecyclable())
copy.setRecyclable((Boolean) copyBuilder.copy(isRecyclable));
return super.copyTo(copy, copyBuilder);
}
@Override
public void accept(FeatureVisitor featureVisitor) {
featureVisitor.visit(this);
}
@Override
public <T> T accept(FeatureFunctor<T> featureFunctor) {
return featureFunctor.apply(this);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.gml.base.AssociationByRepOrRef;
public class WasteProperty extends AssociationByRepOrRef<Waste> implements ADEModelObject {
public WasteProperty() {
}
public WasteProperty(Waste waste) {
super(waste);
}
public WasteProperty(String href) {
super(href);
}
public Waste getWaste() {
return super.getObject();
}
public boolean isSetWaste() {
return super.isSetObject();
}
public void setWaste(Waste waste) {
super.setObject(waste);
}
public void unsetWaste() {
super.unsetObject();
}
@Override
public Class<Waste> getAssociableClass() {
return Waste.class;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new WasteProperty(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
WasteProperty copy = (target == null) ? new WasteProperty() : (WasteProperty) target;
return super.copyTo(copy, copyBuilder);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.ade.energy.model.core.AbstractResource;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.common.visitor.FeatureFunctor;
import org.citygml4j.model.common.visitor.FeatureVisitor;
import org.citygml4j.model.gml.basicTypes.Code;
public class Water extends AbstractResource implements ADEModelObject {
private Code waterTypeValue;
private Code waterEndUseValue;
public Boolean isWaterTypeValue() {
return waterTypeValue != null;
}
public Boolean isWaterEndUseValue() {
return waterEndUseValue != null;
}
public Code getWaterTypeValue() {
return waterTypeValue;
}
public void setWaterTypeValue(Code waterTypeValue) {
this.waterTypeValue = waterTypeValue;
}
public Code getWaterEndUseValue() {
return waterEndUseValue;
}
public void setWaterEndUseValue(Code waterEndUseValue) {
this.waterEndUseValue = waterEndUseValue;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new Water(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
Water copy = (target == null) ? new Water() : (Water) target;
if (isWaterTypeValue())
copy.setWaterTypeValue((Code) copyBuilder.copy(waterTypeValue));
if (isWaterEndUseValue())
copy.setWaterEndUseValue((Code) copyBuilder.copy(waterEndUseValue));
return super.copyTo(copy, copyBuilder);
}
@Override
public void accept(FeatureVisitor featureVisitor) {
featureVisitor.visit(this);
}
@Override
public <T> T accept(FeatureFunctor<T> featureFunctor) {
return featureFunctor.apply(this);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.gml.base.AssociationByRepOrRef;
public class WaterProperty extends AssociationByRepOrRef<Water> implements ADEModelObject {
public WaterProperty() {
}
public WaterProperty(Water water) {
super(water);
}
public WaterProperty(String href) {
super(href);
}
public Water getWater() {
return (Water) super.getObject();
}
public boolean isSetWater() {
return super.isSetObject();
}
public void setWater(Water water) {
super.setObject(water);
}
public void unsetWater() {
super.unsetObject();
}
@Override
public Class<Water> getAssociableClass() {
return Water.class;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new WaterProperty(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
WaterProperty copy = (target == null) ? new WaterProperty() : (WaterProperty) target;
return super.copyTo(copy, copyBuilder);
}
}
package org.citygml4j.ade.energy.model.supportingClasses;
public enum WavelengthRange {
SOLAR("solar"),
INFRARED("infrared"),
VISIBLE("visible"),
TOTAL("total");
private final String value;
WavelengthRange(String value) {
this.value = value;
}
public String value() {
return value;
}
public static WavelengthRange fromValue(String v) {
for (WavelengthRange c : WavelengthRange.values()) {
if (c.value.equals(v))
return c;
}
return null;
}
}
/*
* energy-ade-citygml4j - Energy ADE module for citygml4j
* https://github.com/citygml4j/energy-ade-citygml4j
*
* energy-ade-citygml4j is part of the citygml4j project
*
* Copyright 2019-2024 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.ade.energy.model.core.WeatherDataProperty;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.citygml.core.AbstractCityObject;
import org.citygml4j.model.common.child.ChildList;
import org.citygml4j.model.common.visitor.FeatureFunctor;
import org.citygml4j.model.common.visitor.FeatureVisitor;
import org.citygml4j.model.common.visitor.GMLFunctor;
import org.citygml4j.model.common.visitor.GMLVisitor;
import org.citygml4j.model.gml.feature.BoundingShape;
import org.citygml4j.model.gml.geometry.primitives.PointProperty;
import org.citygml4j.util.bbox.BoundingBoxOptions;
import java.util.List;
public class WeatherStation extends AbstractCityObject implements ADEModelObject {
@Override
public BoundingShape calcBoundedBy(BoundingBoxOptions options) {
BoundingShape boundedBy = super.calcBoundedBy(options);
if (options.isUseExistingEnvelopes() && !boundedBy.isEmpty())
return boundedBy;
if (options.isAssignResultToFeatures())
setBoundedBy(boundedBy);
return boundedBy;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new WeatherStation(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
WeatherStation copy = (target == null) ? new WeatherStation() : (WeatherStation) target;
return super.copyTo(copy, copyBuilder);
}
@Override
public void accept(FeatureVisitor visitor) {
// super.accept(visitor);
visitor.visit(this);
}
@Override
public <T> T accept(FeatureFunctor<T> visitor) {
return visitor.apply(this);
}
@Override
public void accept(GMLVisitor visitor) {
visitor.visit(this);
}
@Override
public <T> T accept(GMLFunctor<T> visitor) {
return visitor.apply(this);
}
}
/*
* energy-ade-citygml4j - Energy ADE module for citygml4j
* https://github.com/citygml4j/energy-ade-citygml4j
*
* energy-ade-citygml4j is part of the citygml4j project
*
* Copyright 2019-2024 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.citygml4j.ade.energy.model.supportingClasses;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.gml.feature.FeatureProperty;
public class WeatherStationProperty extends FeatureProperty<WeatherStation> implements ADEModelObject {
public WeatherStationProperty() {
}
public WeatherStationProperty(WeatherStation weatherStation) {
super(weatherStation);
}
public WeatherStationProperty(String href) {
super(href);
}
public WeatherStation getWeatherStation() {
return super.getObject();
}
public boolean isSetWeatherStation() {
return super.isSetObject();
}
public void setWeatherStation(WeatherStation weatherStation) {
super.setObject(weatherStation);
}
public void unsetWeatherStation() {
super.unsetObject();
}
@Override
public Class<WeatherStation> getAssociableClass() {
return WeatherStation.class;
}
@Override
public Object copy(CopyBuilder copyBuilder) {
return copyTo(new WeatherStationProperty(), copyBuilder);
}
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
WeatherStationProperty copy = (target == null) ? new WeatherStationProperty() : (WeatherStationProperty) target;
return super.copyTo(copy, copyBuilder);
}
}
/*
* energy-ade-citygml4j - Energy ADE module for citygml4j
* https://github.com/citygml4j/energy-ade-citygml4j
*
* energy-ade-citygml4j is part of the citygml4j project
*
* Copyright 2019-2024 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.citygml4j.ade.energy.walker;
import org.citygml4j.ade.energy.model.supportingClasses.WeatherStation;
import org.citygml4j.model.citygml.ade.binding.ADEWalker;
import org.citygml4j.model.citygml.core.AbstractCityObject;
import org.citygml4j.util.walker.FeatureFunctionWalker;
public class EnergyADEFeatureFunctionWalker<T> implements ADEWalker<FeatureFunctionWalker<T>> {
private FeatureFunctionWalker<T> walker;
@Override
public void setParentWalker(FeatureFunctionWalker<T> walker) {
this.walker = walker;
}
public T visit(WeatherStation weatherStation) {
return walker.apply((AbstractCityObject) weatherStation);
}
}
/*
* energy-ade-citygml4j - Energy ADE module for citygml4j
* https://github.com/citygml4j/energy-ade-citygml4j
*
* energy-ade-citygml4j is part of the citygml4j project
*
* Copyright 2019-2024 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.citygml4j.ade.energy.walker;
import org.citygml4j.ade.energy.model.supportingClasses.WeatherStation;
import org.citygml4j.model.citygml.ade.binding.ADEWalker;
import org.citygml4j.model.citygml.core.AbstractCityObject;
import org.citygml4j.util.walker.FeatureWalker;
public class EnergyADEFeatureWalker implements ADEWalker<FeatureWalker> {
private FeatureWalker walker;
@Override
public void setParentWalker(FeatureWalker walker) {
this.walker = walker;
}
public void visit(WeatherStation weatherStation) {
walker.visit((AbstractCityObject) weatherStation);
}
}
/*
* energy-ade-citygml4j - Energy ADE module for citygml4j
* https://github.com/citygml4j/energy-ade-citygml4j
*
* energy-ade-citygml4j is part of the citygml4j project
*
* Copyright 2019-2024 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.citygml4j.ade.energy.walker;
import org.citygml4j.ade.energy.model.core.*;
import org.citygml4j.ade.energy.model.supportingClasses.*;
import org.citygml4j.model.citygml.ade.binding.ADEWalker;
import org.citygml4j.model.citygml.core.AbstractCityObject;
import org.citygml4j.model.gml.base.AbstractGML;
import org.citygml4j.model.gml.base.AssociationByRepOrRef;
import org.citygml4j.model.gml.feature.FeatureProperty;
import org.citygml4j.util.walker.GMLFunctionWalker;
public class EnergyADEGMLFunctionWalker<T> implements ADEWalker<GMLFunctionWalker<T>> {
private GMLFunctionWalker<T> walker;
@Override
public void setParentWalker(GMLFunctionWalker<T> walker) {
this.walker = walker;
}
public T apply(AbstractSchedule abstractSchedule) {
return walker.apply((AbstractGML) abstractSchedule);
}
public T apply(AbstractResource abstractResource) {
return walker.apply((AbstractGML) abstractResource);
}
public T apply(AbstractTimeSeries abstractTimeSeries) {
return walker.apply((AbstractGML) abstractTimeSeries);
}
public T apply(RegularTimeSeries regularTimeSeries) {
return apply((AbstractTimeSeries) regularTimeSeries);
}
public T apply(RegularTimeSeriesFile regularTimeSeriesFile) {
return apply((AbstractTimeSeries) regularTimeSeriesFile);
}
public T apply(TypicalValuesTimeSeries typicalValuesTimeSeries) {
return apply((AbstractTimeSeries) typicalValuesTimeSeries);
}
public T apply(TypicalValuesTimeSeriesFile typicalValuesTimeSeriesFile) {
return apply((AbstractTimeSeries) typicalValuesTimeSeriesFile);
}
public T apply(SensorConnection sensorConnection) {
return apply((AbstractTimeSeries) sensorConnection);
}
public T apply(WeatherData weatherData) {
T object = walker.apply((AbstractGML) weatherData);
if (object != null)
return object;
// if (weatherData.isSetValues()) {
// object = walker.apply((AssociationByRepOrRef<AbstractTimeSeries>) weatherData.getValues());
// if (object != null)
// return object;
// }
if (weatherData.isSetPosition()) {
object = walker.apply(weatherData.getPosition());
if (object != null)
return object;
}
return null;
}
public T apply(WeatherDataPropertyElement weatherDataPropertyElement) {
return walker.apply((AssociationByRepOrRef<WeatherData>) weatherDataPropertyElement.getValue());
}
public T apply(WeatherStation weatherStation) {
T object = walker.apply((AbstractCityObject) weatherStation);
if (object != null)
return object;
// if (weatherStation.isSetPosition()) {
// object = walker.apply(weatherStation.getPosition());
// if (object != null)
// return object;
// }
//
// if (weatherStation.isSetParameter()) {
// for (WeatherDataProperty property : weatherStation.getParameter()) {
// object = walker.apply((AssociationByRepOrRef<WeatherData>) property);
// if (object != null)
// return object;
// }
// }
return null;
}
}
/*
* energy-ade-citygml4j - Energy ADE module for citygml4j
* https://github.com/citygml4j/energy-ade-citygml4j
*
* energy-ade-citygml4j is part of the citygml4j project
*
* Copyright 2019-2024 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.citygml4j.ade.energy.walker;
import org.citygml4j.ade.energy.model.core.*;
import org.citygml4j.ade.energy.model.supportingClasses.*;
import org.citygml4j.model.citygml.ade.binding.ADEWalker;
import org.citygml4j.model.citygml.core.AbstractCityObject;
import org.citygml4j.model.gml.base.AbstractGML;
import org.citygml4j.model.gml.base.AssociationByRepOrRef;
import org.citygml4j.util.walker.GMLWalker;
public class EnergyADEGMLWalker implements ADEWalker<GMLWalker> {
private GMLWalker walker;
@Override
public void setParentWalker(GMLWalker walker) {
this.walker = walker;
}
public void visit(AbstractSchedule abstractSchedule) {
walker.visit((AbstractGML) abstractSchedule);
}
public void visit(AbstractResource abstractResource) {
walker.visit((AbstractGML) abstractResource);
}
public void visit(AbstractTimeSeries abstractTimeSeries) {
walker.visit((AbstractGML) abstractTimeSeries);
}
public void visit(RegularTimeSeries regularTimeSeries) {
visit((AbstractTimeSeries) regularTimeSeries);
}
public void visit(RegularTimeSeriesFile regularTimeSeriesFile) {
visit((AbstractTimeSeries) regularTimeSeriesFile);
}
public void visit(TypicalValuesTimeSeries typicalValuesTimeSeries) {
visit((AbstractTimeSeries) typicalValuesTimeSeries);
}
public void visit(TypicalValuesTimeSeriesFile typicalValuesTimeSeriesFile) {
visit((AbstractTimeSeries) typicalValuesTimeSeriesFile);
}
public void visit(WeatherData weatherData) {
walker.visit((AbstractGML) weatherData);
// if (weatherData.isSetValues())
// walker.visit((AssociationByRepOrRef<AbstractTimeSeries>) weatherData.getValues());
if (weatherData.isSetPosition())
walker.visit(weatherData.getPosition());
}
public void visit(WeatherDataPropertyElement weatherDataPropertyElement) {
walker.visit((AssociationByRepOrRef<WeatherData>) weatherDataPropertyElement.getValue());
}
public void visit(WeatherStation weatherStation) {
walker.visit((AbstractCityObject) weatherStation);
// if (weatherStation.isSetPosition())
// walker.visit(weatherStation.getPosition());
//
// if (weatherStation.isSetParameter()) {
// for (WeatherDataProperty property : weatherStation.getParameter()) {
// walker.visit((AssociationByRepOrRef<WeatherData>) property);
// }
// }
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment