Atavism Version 2018.1AGIS API

atavism.server.objects
Class Road

java.lang.Object
  extended by atavism.server.objects.NamedPropertyClass
      extended by atavism.server.objects.Entity
          extended by atavism.server.objects.Road
All Implemented Interfaces:
java.io.Serializable

public class Road
extends Entity

See Also:
Serialized Form

Field Summary
static int maxSegmentLengthMillis
           
protected  java.util.LinkedList<Point> points
           
 
Fields inherited from class atavism.server.objects.Entity
log, staticLock, subObjectNamespacesInt, transientPropertyKeys, type
 
Fields inherited from class atavism.server.objects.NamedPropertyClass
lock, name
 
Constructor Summary
Road()
           
Road(java.lang.String name)
           
 
Method Summary
 void addPoint(Point point)
           
 java.util.List<RoadSegment> generateRoadSegments()
           
 java.lang.Integer getHalfWidth()
           
 java.util.List<Point> getPoints()
           
 void setHalfWidth(java.lang.Integer width)
           
 void setPoints(java.util.List<Point> points)
           
 java.lang.String toString()
          Returns the string describing this entity, useful for logging.
 
Methods inherited from class atavism.server.objects.Entity
addSubObjectNamespace, equals, equals, getLock, getNamespace, getOid, getPersistenceFlag, getProperty, getSubObjectNamespaces, getSubObjectNamespacesInt, getTransientDataRef, getType, hashCode, hasSubObjectNamespace, isDeleted, registerTransientPropertyKey, removeProperty, removeSubObjectNamespace, setDeleted, setNamespace, setOid, setPersistenceFlag, setProperty, setSubObjectNamespaces, setSubObjectNamespacesInt, setType, toBytes, unregisterTransientPropertyKey
 
Methods inherited from class atavism.server.objects.NamedPropertyClass
getBooleanProperty, getIntProperty, getName, getPropertyMap, getPropertyMapRef, getStringProperty, lock, modifyIntProperty, setName, setPropertyMap, setupTransient, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

points

protected java.util.LinkedList<Point> points

maxSegmentLengthMillis

public static int maxSegmentLengthMillis
Constructor Detail

Road

public Road()

Road

public Road(java.lang.String name)
Method Detail

toString

public java.lang.String toString()
Description copied from class: Entity
Returns the string describing this entity, useful for logging.

Overrides:
toString in class Entity
Returns:
string describing entity

setHalfWidth

public void setHalfWidth(java.lang.Integer width)

getHalfWidth

public java.lang.Integer getHalfWidth()

setPoints

public void setPoints(java.util.List<Point> points)

getPoints

public java.util.List<Point> getPoints()

addPoint

public void addPoint(Point point)

generateRoadSegments

public java.util.List<RoadSegment> generateRoadSegments()


Copyright © 2018 Dragonsan Studios Sp. z o.o.