ucl.physiol.neuroconstruct.cell.compartmentalisation
Class SegmentRange

java.lang.Object
  extended by ucl.physiol.neuroconstruct.cell.compartmentalisation.SegmentRange

public class SegmentRange
extends Object

Helper class for compartmentalisations. Defines a segment Id, it's length, and a range defined by start and end fractions (0 to 1). This forms the basis of the SegmentLocMapper where a SegmentRange of one cell (e.g seg of len 10, 0 to 1) is mapped to a recompartmentalised cell e.g. seg of len 20, 0 to 0.5

Author:
Padraig Gleeson
See Also:
SegmentLocMapper

Constructor Summary
SegmentRange(int segmentId, float totalSegmentLength, float startFract, float endFract)
           
 
Method Summary
 float getEndFract()
           
 float getRangeLength()
          The length of the segment between the start and end of the range
 int getSegmentId()
           
 float getStartFract()
           
 float getTotalSegmentLength()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SegmentRange

public SegmentRange(int segmentId,
                    float totalSegmentLength,
                    float startFract,
                    float endFract)
Method Detail

getSegmentId

public int getSegmentId()

getTotalSegmentLength

public float getTotalSegmentLength()

getStartFract

public float getStartFract()

getEndFract

public float getEndFract()

getRangeLength

public float getRangeLength()
The length of the segment between the start and end of the range


toString

public String toString()
Overrides:
toString in class Object