|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.imgfmt.app.net.RouteArc
public class RouteArc
An arc joins two nodes within a RouteCenter
. This may be renamed
to a Segment.
The arc also references the road that it is a part of.
There are also links between nodes in different centers.
Field Summary | |
---|---|
static int |
MASK_CURVE_LEN
|
Constructor Summary | |
---|---|
RouteArc(RoadDef roadDef,
RouteNode source,
RouteNode dest,
int initialHeading,
int finalHeading,
double length,
boolean curveEnabled,
int pointsHash)
Create a new arc. |
Method Summary | |
---|---|
int |
boundSize()
Provide an upper bound for the written size in bytes. |
RouteNode |
getDest()
|
int |
getFinalHeading()
|
byte |
getIndexA()
Get this arc's index into Table A. |
byte |
getIndexB()
Get this arc's index into Table B. |
int |
getInitialHeading()
|
int |
getLength()
|
int |
getPointsHash()
|
RoadDef |
getRoadDef()
|
RouteNode |
getSource()
|
boolean |
isForward()
|
boolean |
isInternal()
Is this an arc within the RouteCenter? |
protected void |
setDestinationClass(int destinationClass)
|
void |
setForward()
|
void |
setIndexA(byte indexA)
Set this arc's index into Table A. |
void |
setIndexB(byte indexB)
Set this arc's index into Table B. |
void |
setInitialHeading(int ih)
|
void |
setInternal(boolean internal)
|
void |
setLast()
|
void |
setNewDir()
|
void |
write(ImgFileWriter writer)
|
void |
writeSecond(ImgFileWriter writer)
Second pass over the nodes in this RouteCenter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MASK_CURVE_LEN
Constructor Detail |
---|
public RouteArc(RoadDef roadDef, RouteNode source, RouteNode dest, int initialHeading, int finalHeading, double length, boolean curveEnabled, int pointsHash)
roadDef
- The road that this arc segment is part of.source
- The source node.dest
- The destination node.initialHeading
- The initial heading (signed degrees)Method Detail |
---|
public int getInitialHeading()
public void setInitialHeading(int ih)
public int getFinalHeading()
public RouteNode getSource()
public RouteNode getDest()
public int getLength()
public int getPointsHash()
public int boundSize()
public boolean isInternal()
public void setInternal(boolean internal)
public void setIndexA(byte indexA)
public byte getIndexA()
public void setIndexB(byte indexB)
public byte getIndexB()
public void write(ImgFileWriter writer)
public void writeSecond(ImgFileWriter writer)
public RoadDef getRoadDef()
public void setNewDir()
public void setForward()
public boolean isForward()
public void setLast()
protected void setDestinationClass(int destinationClass)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |