|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A cell has a principal port and zero or more auxiliary ports.
Method Summary | |
Cell |
cloneCell()
Clones this Cell and returns the clone. |
void |
collectPorts(Stack portStack)
Adds its ports to a given Stack. |
Port |
getPort(int portNumber)
Returns the port with the given number. |
Port |
getPrincipalPort()
Returns the principal port of this cell. |
int |
getSymbol()
Returns the Symbol SYMBOL_* of this cell. |
int |
getSymbolArity()
Returns the symbol arity of this Cell. |
int |
interact()
Interacts with the opposite Cell. |
boolean |
isBinaryCell()
Returns true if this Cell is a binaryCell, i.e. a constructor or a duplicator. |
boolean |
isDecoder()
Returns true if this Cell is a DecodingCell. |
boolean |
isEraser()
Returns true if this Cell is an Eraser. |
boolean |
isPentaryMultiplexor()
Returns true if this Cell is a PentaryMultiplexor, i.e. an Abstractor or an Applicator. |
boolean |
isWireCell()
Returns true if this Cell is a WireCell. |
Field Detail |
public static final int SYMBOL_WIRE
public static final int SYMBOL_ERASER
public static final int SYMBOL_DUPLICATOR
public static final int SYMBOL_CONSTRUCTOR
public static final int SYMBOL_ABSTRACTOR
public static final int SYMBOL_APPLICATOR
public static final int SYMBOL_DECODER
public static final char[] SYMBOL_SYMBOLS
public static final int INTERACTION_WIRE
public static final int INTERACTION_ANNIHILATION_ERASER
public static final int INTERACTION_ERASING_DUPLICATOR
public static final int INTERACTION_ERASING_CONSTRUCTOR
public static final int INTERACTION_ERASING_ABSTRACTOR
public static final int INTERACTION_ERASING_APPLICATOR
public static final int INTERACTION_ERASING_DECODER
public static final int INTERACTION_ANNIHILATION_DUPLICATOR
public static final int INTERACTION_ANNIHILATION_CONSTRUCTOR
public static final int INTERACTION_CONSTRUCTOR_DUPLICATOR
public static final int INTERACTION_CONSTRUCTOR_DUPLICATOR_CONTRUCTORS
public static final int INTERACTION_DUPLICATING_ABSTRACTOR
public static final int INTERACTION_DUPLICATING_APPLICATOR
public static final int INTERACTION_ABSTRACTOR_APPLICATOR
public static final int INTERACTION_DUPLICATING_DECODER
public static final int INTERACTION_MERGING_DECODER
public static final int INTERACTION_MERGING_DECODERS
public static final int INTERACTION_APPLICATOR_DECODER
public static final java.lang.String[] INTERACTION_SYMBOLS
Method Detail |
public int getSymbol()
public int getSymbolArity()
public boolean isWireCell()
public boolean isEraser()
public boolean isBinaryCell()
public boolean isPentaryMultiplexor()
public boolean isDecoder()
public Port getPrincipalPort()
public Port getPort(int portNumber)
portNumber
- 0 for the principal port, 1 to the symbol arity for the
auxiliary ports.
public void collectPorts(Stack portStack)
portStack
- a Stack of ports.public Cell cloneCell()
public int interact()
Pre-condition: the two cells must have their principal Ports connected and have their all auxiliary Ports connected.
java.lang.IllegalStateException
- if this Cell is not connected to a principal Port.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |