File: EntityAggregator.h

package info (click to toggle)
paje.app 1.98-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,428 kB
  • sloc: objc: 24,517; ansic: 6,998; makefile: 134; sh: 42; java: 31
file content (28 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _EntityAggregator_h_
#define _EntityAggregator_h_

#include <Foundation/Foundation.h>
#include "../General/PajeEntity.h"

@interface EntityAggregator : NSObject <NSCopying>
{
    NSMutableArray *entities;
    NSDate *earliestStartTime;      // not retained
    double aggregationDuration;
    Class aggregatedEntityClass;
}

+ (EntityAggregator *)aggregatorForEntityType:(PajeEntityType *)entityType
                          aggregationDuration:(double)duration;
- (id)initWithAggregationDuration:(double)duration;

- (BOOL)addEntity:(PajeEntity *)entity;
- (PajeEntity *)aggregateEntity:(PajeEntity *)entity;
- (PajeEntity *)aggregate;
- (PajeEntity *)aggregateBefore:(NSDate *)limit;

- (int)entityCount;

- (double)aggregationDuration;
@end
#endif