|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.Staker.domain.Job
public class Job
A staking job.
| Constructor Summary | |
|---|---|
Job()
Create a new, blank job. |
|
| Method Summary | |
|---|---|
void |
addJobListener(JobListener listener)
|
void |
applyPostprocessingCorrections(CorrectedJob corrections,
Projection projection)
|
Location |
convertToLocation(IntermediatePoint station)
|
java.util.List<PostprocessingPoint> |
copyPostprocessingPoints()
Copies all the job's postprocessing points into a new list. |
void |
createAlternative(java.lang.String name)
Adds a new alternative. |
void |
createAlternative(java.lang.String name,
java.lang.String alternativeToCopy)
Adds a new alternative as a copy of an existing alternative. |
Location |
createLocation(StakingNode parent,
double x,
double y)
Creates a new location with the given parent, x, and y. |
Location |
createLocation(StakingNode parent,
XyPoint point)
Creates a new location with the given parent, x, and y. |
RedlineSticker |
createRedlinePoint(java.lang.String iconName,
double x,
double y)
Creates a new RedlineSticker with the given icon name. |
IntermediatePoint |
createStation(StakingNode parent,
double x,
double y)
Creates a new station with the given parent, x, and y. |
java.lang.Object |
deepCopy()
clones the job. |
static java.util.Set |
deepCopyNodes(java.util.Set original)
|
void |
deleteAlternative(java.lang.String name)
|
void |
detachNodes()
This removes the parent-child pointer relationships from the nodes and places them in the detachedNodes list, storing the relationships in the detachedNodeParents() Naming. |
void |
fireJobChanged()
Notifies all listeners that this job has changed. |
void |
fixDanglingStations()
Converts any dangling stations to locations. |
java.util.Set |
getAlternative(java.lang.String name)
|
java.util.Map |
getAlternatives()
|
XyBounds |
getBounds()
Returns the geometric extents of the locations and annotations in this job. |
java.lang.String |
getCurrentAlternative()
|
java.util.Map<java.lang.String,java.lang.String> |
getDetachedNodeParents()
|
java.util.List<MapPoint> |
getDetachedNodes()
|
JobHeader |
getHeader()
Get job header info. |
java.util.Iterator<Location> |
getLocations()
|
int |
getNextGpsID()
Get next location ID. |
int |
getNextLocationID()
Get next location ID. |
int |
getNextNodeID()
Get next node ID. |
java.util.Set |
getNodes()
Get set of staking nodes. |
ReportOptions |
getReportOptions()
|
java.util.Map |
getSummaryInfo()
Get summary info. |
Location |
getTakeoffLocation()
Get takeoff point (lowest ID#). |
java.util.ArrayList |
getTakeoffLocations()
Gets all root (takeoff) locations - those without parents. |
java.util.Set |
getUnitSummary()
|
Location |
importJob(Job notherJob,
boolean clearGuids)
Imports another job or template. |
void |
insertAlternative(java.lang.String name)
Inserts the named alternative into the current one. |
Location |
insertJob(Job notherJob,
StakingNode parent,
XyPoint insertionPoint,
boolean clearGuids)
Insert another job or template at the given take-off location. |
java.util.List<Location> |
listLocations()
Lists just the Location objects in this job. |
Location |
locationNearest(XyPoint point)
Returns the location nearest the given XyPoint. |
Location |
locationNearest(XyPoint point,
double radius)
Returns the location nearest the given XyPoint, within the given radius. |
java.util.Iterator |
locations()
|
void |
mergerTwoLocations(Staker staker,
Location location)
|
void |
mergeTemplateWithLocation(Job template,
Location selectedLocation)
This basically merges a template with an actual location. |
void |
move(double offsetX,
double offsetY)
|
MapPoint |
nodeForGPSID(java.lang.String gpsID)
Returns the MapPoint (location, redline node, whatever) with the given GPS ID in this job. |
MapPoint |
nodeForGuid(java.lang.String guid)
Returns the MapPoint (location, redline node, whatever) with the given GUID in this job. |
void |
promote()
Promotes a job to the next JobStatus. |
void |
reattachNodes()
This restores the parent-child pointer relationships from the nodes and places them in the detachedNodes list, storing the relationships in the detachedNodeParents() Naming. |
void |
refresh()
|
void |
removeJobListener(JobListener listener)
|
void |
removePoint(MapPoint point)
Removes the given node. |
void |
renameAlternative(java.lang.String original,
java.lang.String newName)
|
void |
renumberLocations()
Renumbers numbered locations. |
void |
reproject(Projection originalProjection,
Projection newProjection)
Assumes units are in feet! |
Location |
reverseFlow(StakingNode node)
|
void |
selectCurrentAlternative(java.lang.String name)
|
void |
setAlternatives(java.util.Map newAlternatives)
|
void |
setCurrentAlternative(java.lang.String newName)
|
void |
setDetachedNodeParents(java.util.Map<java.lang.String,java.lang.String> newParents)
|
void |
setDetachedNodes(java.util.List<MapPoint> newNodes)
|
void |
setHeader(JobHeader newHeader)
Set header info. |
void |
setNextGpsID(int newNext)
Set next location ID. |
void |
setNextLocationID(int newNext)
Set next location ID. |
void |
setNextNodeID(int newNext)
Set next node ID. |
void |
setNodes(java.util.Set newNodes)
Set staking node set. |
void |
setReportOptions(ReportOptions newOptions)
|
java.lang.String |
toString()
|
void |
updateCentroidAndBounds()
Updates the centroid and takeoff coord in the job header. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Job()
| Method Detail |
|---|
public Location createLocation(StakingNode parent,
XyPoint point)
public Location createLocation(StakingNode parent,
double x,
double y)
public IntermediatePoint createStation(StakingNode parent,
double x,
double y)
public RedlineSticker createRedlinePoint(java.lang.String iconName,
double x,
double y)
public void removePoint(MapPoint point)
public Location reverseFlow(StakingNode node)
public void mergerTwoLocations(Staker staker,
Location location)
public void mergeTemplateWithLocation(Job template,
Location selectedLocation)
public Location importJob(Job notherJob,
boolean clearGuids)
public Location insertJob(Job notherJob,
StakingNode parent,
XyPoint insertionPoint,
boolean clearGuids)
public void promote()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator locations()
public java.util.Iterator<Location> getLocations()
public void move(double offsetX,
double offsetY)
public void reproject(Projection originalProjection,
Projection newProjection)
public void selectCurrentAlternative(java.lang.String name)
public void createAlternative(java.lang.String name)
public void createAlternative(java.lang.String name,
java.lang.String alternativeToCopy)
public void insertAlternative(java.lang.String name)
public java.util.Set getAlternative(java.lang.String name)
public void renameAlternative(java.lang.String original,
java.lang.String newName)
public void deleteAlternative(java.lang.String name)
public void detachNodes()
public void reattachNodes()
public void renumberLocations()
public void updateCentroidAndBounds()
public void refresh()
public void fixDanglingStations()
public Location convertToLocation(IntermediatePoint station)
public MapPoint nodeForGuid(java.lang.String guid)
public MapPoint nodeForGPSID(java.lang.String gpsID)
Returns the MapPoint (location, redline node, whatever) with the given GPS ID in this job.
public Location locationNearest(XyPoint point)
public Location locationNearest(XyPoint point,
double radius)
public java.util.ArrayList getTakeoffLocations()
public Location getTakeoffLocation()
public java.util.Map getSummaryInfo()
public java.util.Set getUnitSummary()
public JobHeader getHeader()
public void setHeader(JobHeader newHeader)
public java.util.Set getNodes()
public void setNodes(java.util.Set newNodes)
public java.util.Map<java.lang.String,java.lang.String> getDetachedNodeParents()
public void setDetachedNodeParents(java.util.Map<java.lang.String,java.lang.String> newParents)
public java.util.List<MapPoint> getDetachedNodes()
public void setDetachedNodes(java.util.List<MapPoint> newNodes)
public java.util.List<PostprocessingPoint> copyPostprocessingPoints()
Copies all the job's postprocessing points into a new list. Skips points w/ no postprocessing data.
public int getNextGpsID()
public void setNextGpsID(int newNext)
public int getNextLocationID()
public void setNextLocationID(int newNext)
public int getNextNodeID()
public void setNextNodeID(int newNext)
public ReportOptions getReportOptions()
public void setReportOptions(ReportOptions newOptions)
public XyBounds getBounds()
public java.util.Map getAlternatives()
public void setAlternatives(java.util.Map newAlternatives)
public java.lang.String getCurrentAlternative()
public void setCurrentAlternative(java.lang.String newName)
public static java.util.Set deepCopyNodes(java.util.Set original)
public java.util.List<Location> listLocations()
public java.lang.Object deepCopy()
public void fireJobChanged()
public void addJobListener(JobListener listener)
public void removeJobListener(JobListener listener)
public void applyPostprocessingCorrections(CorrectedJob corrections,
Projection projection)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||