|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.MapBrowser.MapPoint
com.partnersoft.v3x.apps.MapBrowser.MapTreeNode
com.partnersoft.v3x.apps.Staker.domain.StakingNode
com.partnersoft.v3x.apps.Staker.domain.Location
public class Location
This is a point on the electrical grid where assemblies and conductors may be placed.
| Field Summary |
|---|
| Fields inherited from class com.partnersoft.v3x.apps.Staker.domain.StakingNode |
|---|
job |
| Fields inherited from class com.partnersoft.v3x.apps.MapBrowser.MapPoint |
|---|
coords |
| Constructor Summary | |
|---|---|
Location()
Create a new, blank Location. |
|
Location(Job job)
Create a new location with location defaults set according to data in job header |
|
| Method Summary | |
|---|---|
void |
addGISLocationUnit(java.lang.String unitCode,
int quantity)
Useful for python scripting; add the named unit as existing. |
void |
addGISSpanUnit(java.lang.String unitCode,
int length)
Useful for python scripting; add the named unit as existing. |
void |
assignConstructionID()
Assigns a location id from the job and increments the job's location id counter. |
void |
clearGuid()
This clears both the location's guid and any unit guids. |
void |
contractPolylines()
Part of the grand TOF depth-reduction kludge; this compacts the intermediate points into a simple list. |
java.lang.Object |
deepCopy()
|
void |
expandPolylines()
Part of the grand TOF depth-reduction kludge; this expands the intermediate points from a simple list. |
double |
getCalculatedSpan()
The by-the-map distance in feet to the parent point. |
java.util.List<Location> |
getChildLocations()
|
java.util.List<StakedUnitCombo> |
getCombos()
|
java.util.List<StakedUnitComboState> |
getComboStates()
This accessor is used to store the combos in TOF format. |
java.lang.String |
getComments()
Comments or whatever. |
java.lang.String |
getConnectivityPosition()
Returns a sorting key based on the locations' position in the job. |
java.lang.String |
getConstructionID()
A unique ID assigned to the point in the job to facilitate references to diagrams. |
java.util.ArrayList |
getDescendentLocations()
|
GPSPosition |
getGPSPosition()
|
HexagonLabel |
getHexagonLabel()
|
double |
getHexAngle()
Angle in radians of the hexagon label. |
int |
getHexDistance()
Distance in pixels of the hexagon label. |
LocationInfo |
getInfo()
|
int |
getLocationID()
A truly unique ID assigned to the point; no two in the job should be the same. |
byte[] |
getLocationShape()
|
java.lang.String |
getMapLocation()
Coordinate in nomenclature space. |
OverUnder |
getOverUnder()
Overhead or underground? One lump or two? |
java.lang.String |
getSourceName()
|
Span |
getSpan()
This is the backspan, or imaginary line connecting this node with its parent. |
Coord3D |
getSpanLegendCoord()
|
java.util.ArrayList |
getStations()
|
StakeStatus |
getStatus()
Existing, retired, or new. |
Coord3D |
getUnitLegendCoord()
|
java.util.Set<UnitAtALocation> |
getUnits()
Stuff on the point. |
java.util.Set |
getUnitSummary()
An accumulated summary of all units (span or location) used in the job. |
ValidationErrorList |
getValidationErrors()
|
boolean |
isShowLegend()
|
boolean |
isShowSpanLegend()
|
void |
paintOn(java.awt.Graphics g,
java.awt.Point p,
boolean inverse)
Subclasses should override this. |
void |
paintOn(java.awt.Graphics g,
RenderMold mold)
Figures out where the centerpoint should be and calls paintOn(Graphics, Point); |
void |
refreshConnectivityPosition(java.lang.String prefix,
int count)
|
void |
setComboStates(java.util.List<StakedUnitComboState> newStates)
This accessor is used to store the combos in TOF format. |
void |
setComments(java.lang.String newComments)
|
void |
setConnectivityPosition(java.lang.String newPosition)
|
void |
setConstructionID(java.lang.String newconstructionID)
|
void |
setGPSPosition(GPSPosition newPosition)
FIXME: take this out. |
void |
setHexAngle(double newHexAngle)
|
void |
setHexDistance(int newHexDistance)
|
void |
setInfo(LocationInfo newInfo)
|
void |
setLocationID(int newlocationID)
|
void |
setMapLocation(java.lang.String newMapLocation)
|
void |
setOverUnder(OverUnder newOverUnder)
|
void |
setShowLegend(boolean newShowLegend)
|
void |
setShowSpanLegend(boolean newShowSpanLegend)
|
void |
setSpan(Span newSpan)
|
void |
setSpanLegendCoord(Coord3D newCoord)
|
void |
setStations(java.util.ArrayList newStations)
|
void |
setStatus(StakeStatus newStatus)
|
void |
setUnitLegendCoord(Coord3D newCoord)
|
void |
setUnits(java.util.Set newUnits)
|
void |
setValidationErrors(ValidationErrorList newErrors)
|
UnitAtALocation |
stakedUnitWithGuid(java.lang.String guid)
|
java.lang.String |
toString()
|
| Methods inherited from class com.partnersoft.v3x.apps.Staker.domain.StakingNode |
|---|
getGpsID, getJob, getParentLocation, setGpsID |
| Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.MapTreeNode |
|---|
addChild, children, containsDescendent, descendents, formsLoop, getBackSpanDeflection, getBackSpanVector, getChildrenSet, getDistanceToParent, getFrontSpanDeflections, getFrontSpanVector, getNumberOfChildren, getParent, hasChildren, isLoopWith, listAllConnectedNodes, listChildren, remove, removeChild, setParent |
| Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.MapPoint |
|---|
copyFromExistingPoint, getCoords, getGuid, getPostprocessingPoint, getXyPoint, isSelected, setCoords, setGuid, setPostprocessingPoint, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Location()
public Location(Job job)
| Method Detail |
|---|
public void addGISLocationUnit(java.lang.String unitCode,
int quantity)
public void addGISSpanUnit(java.lang.String unitCode,
int length)
public void assignConstructionID()
public void contractPolylines()
public void expandPolylines()
public double getCalculatedSpan()
getCalculatedSpan in class StakingNodepublic java.lang.String getSourceName()
public byte[] getLocationShape()
public void paintOn(java.awt.Graphics g,
RenderMold mold)
paintOn in class MapPoint
public void paintOn(java.awt.Graphics g,
java.awt.Point p,
boolean inverse)
MapPoint
paintOn in class MapPointpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set getUnitSummary()
public java.lang.String getConnectivityPosition()
public void setConnectivityPosition(java.lang.String newPosition)
public java.util.ArrayList getDescendentLocations()
public java.util.List<Location> getChildLocations()
public void refreshConnectivityPosition(java.lang.String prefix,
int count)
public void clearGuid()
clearGuid in class MapPointpublic java.lang.String getConstructionID()
public void setConstructionID(java.lang.String newconstructionID)
public Span getSpan()
public void setSpan(Span newSpan)
public StakeStatus getStatus()
public void setStatus(StakeStatus newStatus)
public double getHexAngle()
public void setHexAngle(double newHexAngle)
public int getHexDistance()
public void setHexDistance(int newHexDistance)
public java.lang.String getComments()
public void setComments(java.lang.String newComments)
public java.lang.String getMapLocation()
public void setMapLocation(java.lang.String newMapLocation)
public java.util.Set<UnitAtALocation> getUnits()
public void setUnits(java.util.Set newUnits)
public OverUnder getOverUnder()
public void setOverUnder(OverUnder newOverUnder)
public LocationInfo getInfo()
public void setInfo(LocationInfo newInfo)
public HexagonLabel getHexagonLabel()
public java.util.ArrayList getStations()
public void setStations(java.util.ArrayList newStations)
public GPSPosition getGPSPosition()
public void setGPSPosition(GPSPosition newPosition)
FIXME: take this out. Don't use it because it isn't used anywhere else. I am not taking out because I can't test the consequences with old jobs.
newPosition - public Coord3D getUnitLegendCoord()
public void setUnitLegendCoord(Coord3D newCoord)
public Coord3D getSpanLegendCoord()
public void setSpanLegendCoord(Coord3D newCoord)
public int getLocationID()
public void setLocationID(int newlocationID)
public boolean isShowLegend()
public void setShowLegend(boolean newShowLegend)
public boolean isShowSpanLegend()
public void setShowSpanLegend(boolean newShowSpanLegend)
public java.util.List<StakedUnitCombo> getCombos()
public java.util.List<StakedUnitComboState> getComboStates()
public void setComboStates(java.util.List<StakedUnitComboState> newStates)
public ValidationErrorList getValidationErrors()
public void setValidationErrors(ValidationErrorList newErrors)
public java.lang.Object deepCopy()
deepCopy in class StakingNodepublic UnitAtALocation stakedUnitWithGuid(java.lang.String guid)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||