Package structures

Examples of structures.Granule


    //Fill in granule activations
    for (int y=0; y<this.numColumns; y++)
    {
      for (int x=0; x<myNetwork.getGranulesPerColumn(); x++)
      {
        Granule gc = this.myNetwork.getColumn(y).getGranules().get(x);
       
        if (gc != null && gc.isActive())
        {
          g.setColor(Color.GREEN);
          g.fillOval(COL_START_X+(COL_OFFSET*y), COL_START_Y+(GRANULE_RADIUS*x), GRANULE_RADIUS, GRANULE_RADIUS);
        }
        else if (gc !=  null && !gc.isActive())
        {
          g.setColor(Color.RED);
          g.fillOval(COL_START_X+(COL_OFFSET*y), COL_START_Y+(GRANULE_RADIUS*x), GRANULE_RADIUS, GRANULE_RADIUS);
        }
        else
View Full Code Here

TOP

Related Classes of structures.Granule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.