added turn restrictions
This commit is contained in:
parent
561b60c5cb
commit
e48cbd49cb
18 changed files with 383 additions and 32 deletions
|
|
@ -0,0 +1,46 @@
|
|||
package btools.mapcreator;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
|
||||
import btools.util.LongList;
|
||||
|
||||
/**
|
||||
* Container for a turn restriction
|
||||
*
|
||||
* @author ab
|
||||
*/
|
||||
public class RestrictionData extends MapCreatorBase
|
||||
{
|
||||
public boolean isPositive;
|
||||
public long fromWid;
|
||||
public long toWid;
|
||||
public long viaNid;
|
||||
public RestrictionData next;
|
||||
|
||||
public int fromLon;
|
||||
public int fromLat;
|
||||
|
||||
public int toLon;
|
||||
public int toLat;
|
||||
|
||||
public RestrictionData()
|
||||
{
|
||||
}
|
||||
|
||||
public RestrictionData( DataInputStream di ) throws Exception
|
||||
{
|
||||
isPositive = di.readBoolean();
|
||||
fromWid = readId( di );
|
||||
toWid = readId( di );
|
||||
viaNid = readId( di );
|
||||
}
|
||||
|
||||
public void writeTo( DataOutputStream dos ) throws Exception
|
||||
{
|
||||
dos.writeBoolean( isPositive );
|
||||
writeId( dos, fromWid );
|
||||
writeId( dos, toWid );
|
||||
writeId( dos, viaNid );
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue