com.partnersoft.v3x.apps.Staker.domain
Class StakingNode

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.MapPoint
      extended by com.partnersoft.v3x.apps.MapBrowser.MapTreeNode
          extended by com.partnersoft.v3x.apps.Staker.domain.StakingNode
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IntermediatePoint, Location

public abstract class StakingNode
extends MapTreeNode

This is a point on the electrical grid where power enters from a single source and may be distributed to several sinks. A node always has an "upstream" or parent junction, except for take-off points, which become the root nodes of the tree structure which forms. Basic nodes only have these properties; it is left to Locations to define the more interesting set of fields and units.

See Also:
Serialized Form

Field Summary
protected  Job job
           
 
Fields inherited from class com.partnersoft.v3x.apps.MapBrowser.MapPoint
coords
 
Constructor Summary
protected StakingNode()
          Create a new, blank StakingNode.
protected StakingNode(Job job)
          Create a new StakingNode at coord with parent.
protected StakingNode(Job job, Coord3D coord, StakingNode parent)
          Create a new StakingNode at coord with parent.
 
Method Summary
 java.lang.Object deepCopy()
           
 double getCalculatedSpan()
          The by-the-map distance in feet to the parent point.
 int getGpsID()
           
 Job getJob()
           
 Location getParentLocation()
          The actual parent location (whereas "parent" may be an intermediate point for underground spans.
 void setGpsID(int newGpsID)
           
 
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
clearGuid, copyFromExistingPoint, getCoords, getGuid, getPostprocessingPoint, getXyPoint, isSelected, paintOn, paintOn, setCoords, setGuid, setPostprocessingPoint, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

job

protected transient Job job
Constructor Detail

StakingNode

protected StakingNode(Job job)
Create a new StakingNode at coord with parent.


StakingNode

protected StakingNode(Job job,
                      Coord3D coord,
                      StakingNode parent)
Create a new StakingNode at coord with parent.


StakingNode

protected StakingNode()
Create a new, blank StakingNode.

Method Detail

deepCopy

public java.lang.Object deepCopy()
Overrides:
deepCopy in class MapTreeNode

getParentLocation

public Location getParentLocation()
The actual parent location (whereas "parent" may be an intermediate point for underground spans.


getCalculatedSpan

public double getCalculatedSpan()
The by-the-map distance in feet to the parent point.


getJob

public Job getJob()

getGpsID

public int getGpsID()

setGpsID

public void setGpsID(int newGpsID)