public class Vertex extends LatLon
Node
abgebildet.
Jedoch kann aus Speichergruenden meistens auf long-IDs verzichtet werden
und Koordinaten und OsmIds spielen hier ueberhaupt keine Rolle, werden
aus praktischen Gruenden jedoch aufgenommen. Ferner wird hier auch das
ReferenceCounting realisiert, was im Node
nichts zu suchen hat.
Die Restriktionen werden hier ebenfalls hineingespiegelt, jedoch ebenfalls
unter der Verwendung kleinerer IDs.Segmenter
wieder
verworfen. VertexHashMap.override(Vertex)
obwohl sie zwei
Members mit dynamischer Laenge besitzt. Hierfuer wurde eine zusaetzliche
Absicherung in setRestrictions(Restriction[])
und
setOsmName(VarString)
eingebaut, so dass dies nur bei der initialen
Befuellung erlaubt ist.Node
,
Membership
,
Restriction
coord, NULL_COORDINATE
Constructor and Description |
---|
Vertex() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
byte |
getClazz() |
Var<?> |
getCustom() |
int |
getId() |
long |
getOsmId() |
VarString |
getOsmName() |
long |
getReadIndex() |
int |
getRefCounter() |
Restriction[] |
getRestrictions() |
int |
incRefCounter() |
boolean |
isShared() |
Vertex |
readFromStream(InStream inStream)
Deserialisiert dieses Objekt aus einem Stream.
|
void |
setClazz(byte clazz) |
void |
setCustom(Var<?> custom) |
void |
setId(int id) |
void |
setOsmId(long osmId) |
void |
setOsmName(VarString osmName) |
void |
setReadIndex(long index) |
void |
setRestrictions(Restriction[] restrictions) |
void |
setShared(boolean isShared) |
java.lang.String |
toString() |
void |
writeToStream(OutStream outStream)
Serialisiert dieses Objekt in einen Stream.
|
public void clear()
public final void setId(int id)
public final int getId()
public final int getRefCounter()
public final int incRefCounter()
public final void setOsmId(long osmId)
public final long getOsmId()
public final byte getClazz()
public final void setClazz(byte clazz)
public final VarString getOsmName()
public final Var<?> getCustom()
public void setOsmName(VarString osmName)
osmName
- VarString
java.lang.IllegalStateException
- VertexHashMap.override(Vertex)
public void setCustom(Var<?> custom)
custom
- Var
java.lang.IllegalStateException
- VertexHashMap.override(Vertex)
public void setRestrictions(Restriction[] restrictions)
restrictions
- Array von Restriction
NULLABLEjava.lang.IllegalStateException
- VertexHashMap.override(Vertex)
public Restriction[] getRestrictions()
public boolean isShared()
public void setShared(boolean isShared)
public long getReadIndex()
public void setReadIndex(long index)
public Vertex readFromStream(InStream inStream)
Var
readFromStream
in interface Var<LatLon>
readFromStream
in class LatLon
inStream
- InStream
this
zurueckgeben.public void writeToStream(OutStream outStream)
Var
writeToStream
in interface Var<LatLon>
writeToStream
in class LatLon
outStream
- OutStream