|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.common.Disposable
net.charlesames.utility.entity.Entity
net.charlesames.utility.entity.WriteableEntity
net.charlesames.utility.contour.RealSegment<T>
T - Range class (origins and goals)public abstract class RealSegment<T>
Base class defining a segment of a ContourFromReal collection.
For the RealSegment class, the ordinates are double-precision numbers.
| Constructor Summary | |
|---|---|
RealSegment(ContourFromReal<T> contour)
Constructor for RealSegment instances |
|
RealSegment(ContourFromReal<T> contour,
double left,
double right,
T origin,
T goal)
Constructor for RealSegment instances |
|
| Method Summary | |
|---|---|
boolean |
equals(RealSegment<T> arg)
Compare the content of one ContourFromReal segment with another. |
ContourFromReal<T> |
getContainer()
Get the ContourFromReal containing this segment. |
T |
getGoal()
|
double |
getInterpolationFactor(double ordinate)
Scale the distance from the left ordinate to the indicated ordinate by the segment width. |
double |
getLeft()
Get the ordinate at the beginning of the segment. |
T |
getOrigin()
|
int |
getPosition()
|
double |
getRight()
Get the ordinate at the end of the segment. |
double |
getSplineFactor(double ordinate)
Calculate a spline value for the indicated ordinate. |
double |
getWidth()
Get the distance between the left and right ordinates. |
double |
interpolateValue(double ordinate,
double origin,
double goal)
Calculate the segment value as of a specified ordinate. |
T |
valueAt(double ordinate)
Interpolate between the origin and the goal, based on the position of the ordinate between the segment's left and right bounds. |
void |
wipe()
Clear all data in this Entity instance. |
| Methods inherited from class net.charlesames.utility.entity.WriteableEntity |
|---|
check, clearXmlSpecs, createXmlSpec, getTagName, getXmlData, getXmlSpec, getXmlSpec, initializeXsd, isPersistent, logError, logError, makeDirty, putXmlData, save, setID, setName, setPersistent, setStatus, toXmlNode |
| Methods inherited from class net.charlesames.utility.entity.Entity |
|---|
decrementReferenceCount, dereferenceHandle, dispose, equals, getHandle, getID, getName, getPath, getReferenceCount, getStatus, getText, hasContainer, incrementReferenceCount, isModifiable, methodHasOverride, predecessor, resequenceEntities, setContainer, setModifiable, shiftEntitiesDown, shiftEntityDown, shiftEntityUp, successor, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RealSegment(ContourFromReal<T> contour)
RealSegment instances
contour -
public RealSegment(ContourFromReal<T> contour,
double left,
double right,
T origin,
T goal)
RealSegment instances
contour - left - right - origin - goal -
java.lang.IllegalArgumentException| Method Detail |
|---|
public void wipe()
EntityEntity instance.
wipe in class Entitypublic ContourFromReal<T> getContainer()
ContourFromReal containing this segment.
getContainer in class WriteableEntityContourFromReal containing this segment.public int getPosition()
ContourFromReal.public double getLeft()
public double getRight()
public double getWidth()
public double getInterpolationFactor(double ordinate)
ordinate - A value ranging from getLeft() to getRight().
java.lang.IllegalArgumentException - when ordinate falls outside range from getLeft() to getRight().public double getSplineFactor(double ordinate)
ordinate - A value ranging from getLeft() to getRight().
java.lang.IllegalArgumentException - when ordinate falls outside range from getLeft() to getRight().public T getOrigin()
public T getGoal()
public T valueAt(double ordinate)
ordinate - The input.
public double interpolateValue(double ordinate,
double origin,
double goal)
ordinate - The specified ordinate expressed as a double-precision number.origin - The beginning segment value.goal - The ending segment value.
public boolean equals(RealSegment<T> arg)
ContourFromReal segment with another.
arg - The other ContourFromReal segment.
ContourFromReal segments have the same content; false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||