Class AggregateDTO
java.lang.Object
com.activeviam.activepivot.server.intf.api.dto.AggregateDTO
- All Implemented Interfaces:
Externalizable,Serializable
The aggregation DTO is an association of a location and its aggregate.
- Author:
- ActiveViam
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AggregateDTO(ILocation location, Map<String, Object> aggregates) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the aggregates.Returns the location.inthashCode()voidvoidsetAggregates(Map<String, Object> aggregates) Set the aggregates.voidsetLocation(ILocation location) Set the location.toString()void
-
Constructor Details
-
AggregateDTO
public AggregateDTO()Default constructor. -
AggregateDTO
Constructor.- Parameters:
location- the location at which the aggregates were computedaggregates- the mapping of measures to values for the considered location
-
-
Method Details
-
getLocation
Returns the location.- Returns:
- the location
-
setLocation
Set the location.- Parameters:
location- the location to set
-
getAggregates
Returns the aggregates.- Returns:
- the aggregates
-
setAggregates
Set the aggregates.- Parameters:
aggregates- the aggregates to set
-
hashCode
public int hashCode() -
equals
-
toString
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-