001    package cnslab.cnsnetwork;
002
003    import java.io.Serializable;
004
005    /***********************************************************************
006    * Neuron Axon, it contains an array of branches. See branch for details
007    * 
008    * @version
009    *   $Date: 2012-08-04 13:43:22 -0500 (Sat, 04 Aug 2012) $
010    *   $Rev: 104 $
011    *   $Author: croft $
012    * @author
013    *   Yi Dong
014    * @author
015    *   David Wallace Croft
016    ***********************************************************************/
017    public final class  Axon
018      implements Serializable
019    ////////////////////////////////////////////////////////////////////////
020    ////////////////////////////////////////////////////////////////////////
021    {
022
023    private static final long  serialVersionUID = 0L;
024    
025    //
026      
027    public Branch [ ]  branches;
028    
029    ////////////////////////////////////////////////////////////////////////
030    // constructor methods
031    ////////////////////////////////////////////////////////////////////////
032    
033    public Axon ( final Branch [ ]  branches )
034    ////////////////////////////////////////////////////////////////////////
035    {
036      this.branches = branches ;
037    }
038
039    public  Axon ( )
040    ////////////////////////////////////////////////////////////////////////
041    {
042      //
043    }
044
045    ////////////////////////////////////////////////////////////////////////
046    ////////////////////////////////////////////////////////////////////////
047
048    @Override
049    public String  toString ( )
050    ////////////////////////////////////////////////////////////////////////
051    {
052      String tmp="->Axon"+"\n";
053      
054      for(int i=0; i< branches.length; i++)
055      {
056        tmp=tmp+"-->Branch "+(i+1)+"\n";
057        
058        tmp=tmp+"   "+branches[i]+"\n";
059      }
060      
061      return tmp;
062    }
063    
064    ////////////////////////////////////////////////////////////////////////
065    ////////////////////////////////////////////////////////////////////////
066    }