Require entity constructors to provide uid and timestamps. Finish relation-related...
[potlatch2.git] / net / systemeD / halcyon / connection / Changeset.as
1 package net.systemeD.halcyon.connection {
2
3     public class Changeset extends Entity {
4         private var nodes:Array;
5                 public static var entity_type:String = 'changeset';
6
7         public function Changeset(id:Number, tags:Object) {
8             super(id, 0, tags, true, NaN, '');
9         }
10
11         public override function toString():String {
12             return "Changeset("+id+"): "+getTagList();
13         }
14
15                 public function isArea():Boolean {
16                         return (nodes[0].id==nodes[nodes.length-1].id  && nodes.length>2);
17                 }
18
19                 public override function getType():String {
20                         return 'changeset';
21                 }
22     }
23
24 }