ucl.physiol.neuroconstruct.project
Class GeneratedCellPositions

java.lang.Object
  extended by ucl.physiol.neuroconstruct.project.GeneratedCellPositions

public class GeneratedCellPositions
extends Object

Storage for the positions generated when the Generate cell positions... button is pressed

Author:
Padraig Gleeson

Nested Class Summary
 class GeneratedCellPositions.CachedCellPosition
           
 
Constructor Summary
GeneratedCellPositions(Project project)
           
 
Method Summary
 void addPosition(String cellGroupName, int cellIndex, float xPos, float yPos, float zPos)
           
 void addPosition(String cellGroupName, PositionRecord posRecord)
           
 String details()
           
 String details(boolean html)
           
 ArrayList<PositionRecord> getAllPositionRecords()
           
 String getHtmlReport()
           
 Iterator<String> getNamesGeneratedCellGroups()
           
 SimpleXMLElement getNetworkMLElement()
           
 ArrayList<SimpleXMLElement> getNetworkMLElements(NeuroMLConstants.NeuroMLVersion version)
           
 ArrayList<String> getNonEmptyCellGroups()
           
 int getNumberInAllCellGroups()
           
 int getNumberInCellGroup(String cellGroupName)
           
 int getNumberNonEmptyCellGroups()
           
 int getNumberPositionRecords()
           
 Point3f getOneCellPosition(String cellGroupName, int index)
           
 ArrayList<PositionRecord> getPositionRecords(String cellGroupName)
           
 long getRandomSeed()
           
 void loadFromFile(File positionFile)
           
static void main(String[] args)
           
 void reset()
           
 void saveToFile(File positionFile)
           
 void setRandomSeed(long rs)
           
 String toLongString(boolean html)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneratedCellPositions

public GeneratedCellPositions(Project project)
Method Detail

reset

public void reset()

setRandomSeed

public void setRandomSeed(long rs)

getRandomSeed

public long getRandomSeed()

addPosition

public void addPosition(String cellGroupName,
                        int cellIndex,
                        float xPos,
                        float yPos,
                        float zPos)

addPosition

public void addPosition(String cellGroupName,
                        PositionRecord posRecord)

getPositionRecords

public ArrayList<PositionRecord> getPositionRecords(String cellGroupName)

getAllPositionRecords

public ArrayList<PositionRecord> getAllPositionRecords()

getNamesGeneratedCellGroups

public Iterator<String> getNamesGeneratedCellGroups()

getNonEmptyCellGroups

public ArrayList<String> getNonEmptyCellGroups()

getNumberInAllCellGroups

public int getNumberInAllCellGroups()

getNumberNonEmptyCellGroups

public int getNumberNonEmptyCellGroups()

getNumberInCellGroup

public int getNumberInCellGroup(String cellGroupName)

getOneCellPosition

public Point3f getOneCellPosition(String cellGroupName,
                                  int index)

getNumberPositionRecords

public int getNumberPositionRecords()

getHtmlReport

public String getHtmlReport()

toString

public String toString()
Overrides:
toString in class Object

details

public String details()

details

public String details(boolean html)

toLongString

public String toLongString(boolean html)

saveToFile

public void saveToFile(File positionFile)
                throws IOException
Throws:
IOException

loadFromFile

public void loadFromFile(File positionFile)
                  throws IOException
Throws:
IOException

getNetworkMLElement

public SimpleXMLElement getNetworkMLElement()
                                     throws NeuroMLException
Throws:
NeuroMLException

getNetworkMLElements

public ArrayList<SimpleXMLElement> getNetworkMLElements(NeuroMLConstants.NeuroMLVersion version)
                                                 throws NeuroMLException
Throws:
NeuroMLException

main

public static void main(String[] args)