public class SpatialSubPathImpl extends LogicalSubPathImpl implements SpatialSubPath
Constructor and Description |
---|
SpatialSubPathImpl(SpatialPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, JGeometry geometry, CategorizedUserData userData) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Support cloneable
|
java.lang.Object |
clone()
Support cloneable
|
CategorizedUserData |
getCategorizedUserData()
Returns categorized user data.
|
CategorizedUserData |
getCategorizedUserData()
Returns categorized user data.
|
double |
getCost()
Deprecated.
|
double[] |
getCosts()
Returns the costs of the subpath.
|
int |
getEndLinkIndex()
Returns the end link index.
|
double |
getEndPercentage()
Returns the location of the end point of the subpath as a percentage of the last link of the containing path.
|
JGeometry |
getGeometry()
Returns the geometry information of the path.
|
LogicalLightPath |
getReferenceLightPath()
Returns the path containing the subpath.
|
int |
getStartLinkIndex()
Returns the start link index.
|
double |
getStartPercentage()
Returns the location of the starting point of the subpath as a percentage of the first link of the containing path.
|
UserData |
getUserData(int category)
Returns user data for the specified category.
|
UserData |
getUserData(int category)
Returns user data for the specified category.
|
boolean |
isFullPath()
Returns true if the subpath covers the entire reference path.
|
void |
setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.
|
void |
setCategorizedUserData(CategorizedUserData cud)
Sets categorized user data.
|
void |
setCosts(double[] costs)
Sets the costs of the subpath.
|
void |
setEndLinkIndex(int endLinkIndex)
Sets the end link index.
|
void |
setEndPercentage(double endPercentage)
Sets the location of the end point of the subpath as a percentage of the last link of the containing path.
|
void |
setReferenceLightPath(LogicalLightPath refPath)
Sets the path containing the subpath.
|
void |
setStartLinkIndex(int startLinkIndex)
Sets the start link index.
|
void |
setStartPercentage(double startPercentage)
Sets the location of the starting point of the subpath as a percentage of the first link of the containing path.
|
void |
setUserData(int category, UserData userData)
Sets user data for the specified category.
|
void |
setUserData(int category, UserData userData)
Sets user data for the specified category.
|
append, getCostsToNode, getReferencePath, knowsIntermediateNodeCosts, reverse
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, getCostsToNode, getReferencePath
getCost, getCosts, getEndLinkIndex, getEndPercentage, getReferenceLightPath, getStartLinkIndex, getStartPercentage, isFullPath, reverse, setCosts, setEndLinkIndex, setEndPercentage, setReferenceLightPath, setStartLinkIndex, setStartPercentage
public SpatialSubPathImpl(SpatialPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, JGeometry geometry, CategorizedUserData userData)
public JGeometry getGeometry()
SpatialSubPath
getGeometry
in interface SpatialSubPath
public CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData userData)
userData
-public UserData getUserData(int category)
public void setUserData(int category, UserData userData)
userData
-public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public LogicalLightPath getReferenceLightPath()
LogicalLightSubPath
getReferenceLightPath
in interface LogicalLightSubPath
public double getStartPercentage()
LogicalLightSubPath
getStartPercentage
in interface LogicalLightSubPath
public double getEndPercentage()
LogicalLightSubPath
getEndPercentage
in interface LogicalLightSubPath
public int getStartLinkIndex()
LogicalLightSubPath
getStartLinkIndex
in interface LogicalLightSubPath
public int getEndLinkIndex()
LogicalLightSubPath
getEndLinkIndex
in interface LogicalLightSubPath
public double getCost()
LogicalLightSubPath
getCost
in interface LogicalLightSubPath
public boolean isFullPath()
LogicalLightSubPath
isFullPath
in interface LogicalLightSubPath
public double[] getCosts()
LogicalLightSubPath
getCosts
in interface LogicalLightSubPath
public void setReferenceLightPath(LogicalLightPath refPath)
LogicalLightSubPath
setReferenceLightPath
in interface LogicalLightSubPath
public void setStartPercentage(double startPercentage)
LogicalLightSubPath
setStartPercentage
in interface LogicalLightSubPath
public void setEndPercentage(double endPercentage)
LogicalLightSubPath
setEndPercentage
in interface LogicalLightSubPath
public void setStartLinkIndex(int startLinkIndex)
LogicalLightSubPath
setStartLinkIndex
in interface LogicalLightSubPath
public void setEndLinkIndex(int endLinkIndex)
LogicalLightSubPath
setEndLinkIndex
in interface LogicalLightSubPath
public void setCosts(double[] costs)
LogicalLightSubPath
setCosts
in interface LogicalLightSubPath
public CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData cud)
public UserData getUserData(int category)
public void setUserData(int category, UserData userData)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException