logicell
Class CLogiTemplate

java.lang.Object
  |
  +--logicell.CLogiTemplate

public class CLogiTemplate
extends java.lang.Object

Generates the global structure according to Logical String entry. A LogiTemplate represents an equation.


Field Summary
(package private)  java.util.Vector Blocks1
          Template blocks
(package private)  java.util.Vector Blocks2
          Template blocks
(package private)  int CTHeight
          Size
(package private)  int CTWidth
          Size
private  boolean[] Entries
          Entries tab
(package private)  java.lang.String Entry
          Processed Entry (xor...)
(package private)  java.lang.String EntryU
          User Entry (equation)
(package private) static boolean LEFT
           
(package private) static int LT_FALSE
           
(package private) static int LT_NONE
           
(package private) static int LT_TRUE
           
(package private)  CLogicellUniverse MyUniverse
          pointer to Universe
private  int NbEntries
          Entries #
private  int OutpCellX
          Position of the Output cell
private  int OutpCellY
          Position of the Output cell
private  CCells OutputBlock
          OutputBlock
private  int OutputGeneration
          OutputGeneration
private  int OutputVal
          Output value
private  java.lang.String PostFixEntry
          Entry in postfix notation
(package private) static boolean RIGHT
           
(package private)  int x
          Position of the template
(package private)  int y
          Position of the template
 
Constructor Summary
CLogiTemplate(CLogicellUniverse univ, int pattype)
          Construct a simple conway pattern
CLogiTemplate(CLogicellUniverse univ, java.lang.String _e, boolean[] entries, int _x, int _y)
          Construct a logical structure
 
Method Summary
private  void GenBlocks(java.util.Stack Results)
          Generate blocks
(package private)  int GetOutputState(int gen)
          Get output cell state
private  boolean ParseEntry()
          Parse entry string and generates blocks.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

LEFT

static final boolean LEFT

RIGHT

static final boolean RIGHT

LT_NONE

static final int LT_NONE

LT_TRUE

static final int LT_TRUE

LT_FALSE

static final int LT_FALSE

MyUniverse

CLogicellUniverse MyUniverse
pointer to Universe

EntryU

java.lang.String EntryU
User Entry (equation)

Entry

java.lang.String Entry
Processed Entry (xor...)

x

int x
Position of the template

y

int y
Position of the template

CTWidth

int CTWidth
Size

CTHeight

int CTHeight
Size

Blocks1

java.util.Vector Blocks1
Template blocks

Blocks2

java.util.Vector Blocks2
Template blocks

PostFixEntry

private java.lang.String PostFixEntry
Entry in postfix notation

Entries

private boolean[] Entries
Entries tab

NbEntries

private int NbEntries
Entries #

OutpCellX

private int OutpCellX
Position of the Output cell

OutpCellY

private int OutpCellY
Position of the Output cell

OutputBlock

private CCells OutputBlock
OutputBlock

OutputGeneration

private int OutputGeneration
OutputGeneration

OutputVal

private int OutputVal
Output value
Constructor Detail

CLogiTemplate

public CLogiTemplate(CLogicellUniverse univ,
                     int pattype)
Construct a simple conway pattern

CLogiTemplate

public CLogiTemplate(CLogicellUniverse univ,
                     java.lang.String _e,
                     boolean[] entries,
                     int _x,
                     int _y)
Construct a logical structure
Method Detail

GetOutputState

int GetOutputState(int gen)
Get output cell state

ParseEntry

private boolean ParseEntry()
Parse entry string and generates blocks.

GenBlocks

private void GenBlocks(java.util.Stack Results)
Generate blocks