ucl.physiol.neuroconstruct.project.packing
Class HexagonalLayerPackingAdapter

java.lang.Object
  extended by ucl.physiol.neuroconstruct.project.packing.CellPackingAdapter
      extended by ucl.physiol.neuroconstruct.project.packing.HexagonalLayerPackingAdapter

public class HexagonalLayerPackingAdapter
extends CellPackingAdapter

Creates a single layer of cell bodies in hexagonal formation (e.g. as found with Golgi cells in the cerebellum)

Author:
Padraig Gleeson

Field Summary
 
Fields inherited from class ucl.physiol.neuroconstruct.project.packing.CellPackingAdapter
description, myCell, myRegion, OTHER_OVERLAP_POLICY, parameterList
 
Constructor Summary
HexagonalLayerPackingAdapter()
           
 
Method Summary
protected  Point3f generateNextPosition()
          Internal function to generate the next position
static void main(String[] args)
           
 void reset()
          Resets to zero internally computed positions
 void setParameter(String parameterName, float parameterValue)
           
 String toNiceString()
          For a more plain english description of the settings
 String toString()
          Returns a short summary of the class's state, for GUIs etc.
 
Methods inherited from class ucl.physiol.neuroconstruct.project.packing.CellPackingAdapter
addRegionAndCellInfo, avoidOtherCellGroups, cancelPosition, doesCellCollideWithExistingCells, getCurrentNumberPositions, getDescription, getLastPosTaken, getNextPosition, getNumPosAlreadyTaken, getParameterList, setParameterList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HexagonalLayerPackingAdapter

public HexagonalLayerPackingAdapter()
Method Detail

reset

public void reset()
Description copied from class: CellPackingAdapter
Resets to zero internally computed positions

Overrides:
reset in class CellPackingAdapter

generateNextPosition

protected Point3f generateNextPosition()
                                throws CellPackingException
Description copied from class: CellPackingAdapter
Internal function to generate the next position

Specified by:
generateNextPosition in class CellPackingAdapter
Returns:
The position as Point3d object
Throws:
CellPackingException - if a position cannoth be generated, i.e. region full

setParameter

public void setParameter(String parameterName,
                         float parameterValue)
                  throws CellPackingException
Specified by:
setParameter in class CellPackingAdapter
Throws:
CellPackingException

toString

public String toString()
Description copied from class: CellPackingAdapter
Returns a short summary of the class's state, for GUIs etc. Included here (even though it's in Object) to force the subclasses to implement it

Specified by:
toString in class CellPackingAdapter
Returns:
A string rep of internal state

toNiceString

public String toNiceString()
Description copied from class: CellPackingAdapter
For a more plain english description of the settings

Specified by:
toNiceString in class CellPackingAdapter

main

public static void main(String[] args)