atavism.server.objects
Class Road
java.lang.Object
atavism.server.objects.NamedPropertyClass
atavism.server.objects.Entity
atavism.server.objects.Road
- All Implemented Interfaces:
- java.io.Serializable
public class Road
- extends Entity
- See Also:
- Serialized Form
Constructor Summary |
Road()
|
Road(java.lang.String name)
|
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 |
points
protected java.util.LinkedList<Point> points
maxSegmentLengthMillis
public static int maxSegmentLengthMillis
Road
public Road()
Road
public Road(java.lang.String name)
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()