m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UpdateQueriesMessage.java
blob: 58ad55a104fd00f7aa9554e354a83d44543a96b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package pl.edu.mimuw.cloudatlas.agent.messages;

import java.util.Map;
import java.util.Map.Entry;

import pl.edu.mimuw.cloudatlas.model.Attribute;
import pl.edu.mimuw.cloudatlas.model.ValueQuery;
import pl.edu.mimuw.cloudatlas.model.ValueTime;

public class UpdateQueriesMessage extends StanikMessage {
    private Map<Attribute, Entry<ValueQuery, ValueTime>> queries;

    public UpdateQueriesMessage(String messageId, long timestamp, Map<Attribute, Entry<ValueQuery, ValueTime>> queries) {
        super(messageId, timestamp, Type.UPDATE_QUERIES);
        this.queries = queries;
    }

    public Map<Attribute, Entry<ValueQuery, ValueTime>> getQueries() {
        return queries;
    }
}