MATSIM
ClusterActivity.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * ClusterPoint.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2009 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.core.network.algorithms.intersectionSimplifier.containers;
22 
23 import org.matsim.api.core.v01.Coord;
24 import org.matsim.api.core.v01.Id;
27 
28 
34 public class ClusterActivity implements Identifiable<Coord>{
35  private final Id<Coord> activityId;
36  private final Node node;
37  private Cluster cluster;
38 
39  public ClusterActivity(Id<Coord> activityId, Node node, Cluster cluster){
40  this.activityId = activityId;
41  this.node = node;
42  this.cluster = cluster;
43  }
44 
45  public Coord getCoord() {
46  return this.node.getCoord();
47  }
48 
49  public Node getNode() {
50  return this.node;
51  }
52 
53  public Cluster getCluster() {
54  return cluster;
55  }
56 
57  public void setCluster(Cluster cluster){
58  this.cluster = cluster;
59  }
60 
61  @Override
62  public Id<Coord> getId() {
63  return this.activityId;
64  }
65 
66 
67 }