use of net.solarnetwork.domain.datum.DatumSamples in project solarnetwork-node by SolarNetwork.
the class SimplePriceDatum method copyWithSamples.
@Override
public SimplePriceDatum copyWithSamples(DatumSamplesOperations samples) {
DatumSamples newSamples = new DatumSamples();
newSamples.copyFrom(samples);
return new SimplePriceDatum(getId(), newSamples);
}
use of net.solarnetwork.domain.datum.DatumSamples in project solarnetwork-node by SolarNetwork.
the class SimpleAtmosphericDatum method copyWithSamples.
@Override
public SimpleAtmosphericDatum copyWithSamples(DatumSamplesOperations samples) {
DatumSamples newSamples = new DatumSamples();
newSamples.copyFrom(samples);
return new SimpleAtmosphericDatum(getId(), newSamples);
}
use of net.solarnetwork.domain.datum.DatumSamples in project solarnetwork-node by SolarNetwork.
the class SimpleDatum method copyWithSamples.
@Override
public SimpleDatum copyWithSamples(DatumSamplesOperations samples) {
SimpleDatum d = new SimpleDatum(getId(), new DatumSamples(samples));
d.uploaded = this.uploaded;
return d;
}
use of net.solarnetwork.domain.datum.DatumSamples in project solarnetwork-node by SolarNetwork.
the class SimpleDcEnergyDatum method copyWithSamples.
@Override
public SimpleDcEnergyDatum copyWithSamples(DatumSamplesOperations samples) {
DatumSamples newSamples = new DatumSamples();
newSamples.copyFrom(samples);
return new SimpleDcEnergyDatum(getId(), newSamples);
}
use of net.solarnetwork.domain.datum.DatumSamples in project solarnetwork-node by SolarNetwork.
the class SimpleEnergyDatum method copyWithSamples.
@Override
public SimpleEnergyDatum copyWithSamples(DatumSamplesOperations samples) {
DatumSamples newSamples = new DatumSamples();
newSamples.copyFrom(samples);
return new SimpleEnergyDatum(getId(), newSamples);
}
Aggregations