|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--Geometry.Slice
Defines the components comprising a Region. A Slice is specified by a set of starting and ending Cells along a two-dimensional projection of rings and sectors.
Slice.Cell,
Region| Nested Class Summary | |
private class |
Slice.Cell
Defines a single point along the starting and ending interval of a Slice. |
| Field Summary | |
private java.lang.String |
m_slice_definition
|
private Slice.Cell |
m_slice_end
|
private Slice.Cell |
m_slice_start
|
| Constructor Summary | |
Slice(java.lang.String definition)
Creates a new Slice. |
|
| Method Summary | |
java.lang.String |
getDefinition()
Returns the original definition string specified in the constructor. |
protected Slice.Cell |
getEnd()
Returns the ending Cell. |
protected java.util.ArrayList |
getSectorInterval()
Returns the list of sectors numbers between their starting and ending point. |
protected Slice.Cell |
getStart()
Returns the starting Cell. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.lang.String m_slice_definition
private Slice.Cell m_slice_start
private Slice.Cell m_slice_end
| Constructor Detail |
public Slice(java.lang.String definition)
throws java.lang.Exception
The grammar is defined as:
slice := segment (' ' segment)*
segment := ring_start sector_start ring_end sector_end
ring_start := ring
ring_end := ring
sector_start := sector
sector_end := sector
ring := {1,2,..,Region.NUM_RINGS}
sector := {1,2,..,Region.NUM_SECTORS}
definition - - the definition; e.g., a14b03
java.lang.Exception - - if any definition components are invalid| Method Detail |
protected java.util.ArrayList getSectorInterval()
protected Slice.Cell getEnd()
protected Slice.Cell getStart()
public java.lang.String getDefinition()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||