Class kernel3x3ThreeState

java.lang.Object
  |
  +--operator
        |
        +--operator2DInt
              |
              +--kernel3x3ThreeState

public class kernel3x3ThreeState
extends operator2DInt


Fields inherited from class operator
box, name, panel, parameters, type
 
Constructor Summary
kernel3x3ThreeState(javax.swing.JPanel panel, linkData links)
          Constructor taking the parent panel (for the UI) and information about the links in the system
 
Method Summary
 int getNumber()
          Returns the number of this operator.
 void go()
          Runs the kernel by simply generating an image from the current state of the buttons and propagating it to the next operators
 void loadParameters(java.io.StreamTokenizer tokenizer)
          Loads the required parameters from the input stream, so the operator can be recreated just as it was saved.
 java.lang.String saveParameters()
          Returns a String representing all the parameters for this operator for the purpose of saving the system setup (and being able to load it again at a future date).
 
Methods inherited from class operator2DInt
getInput1, getInput2, getOutput1, getOutput2, link1To1, link1To2, link2To1, link2To2, setInput1, setInput2
 
Methods inherited from class operator
getBox, getName, getParameters, getType, propagate, propagateSingleLink, saveOperator, setBox, setName, setType, showParameters, updateParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

kernel3x3ThreeState

public kernel3x3ThreeState(javax.swing.JPanel panel,
                           linkData links)
Constructor taking the parent panel (for the UI) and information about the links in the system
Parameters:
panel - the panel that the UI for the operators is based around
links - the information about the system's links
Method Detail

getNumber

public int getNumber()
Returns the number of this operator.
Returns:
the number of the operator

saveParameters

public java.lang.String saveParameters()
Returns a String representing all the parameters for this operator for the purpose of saving the system setup (and being able to load it again at a future date).
Overrides:
saveParameters in class operator

loadParameters

public void loadParameters(java.io.StreamTokenizer tokenizer)
                    throws java.io.IOException
Loads the required parameters from the input stream, so the operator can be recreated just as it was saved.
Parameters:
tokenizer - the input stream split into tokens
Throws:
java.io.IOException - if error occurs during token retrieval
Overrides:
loadParameters in class operator

go

public void go()
Runs the kernel by simply generating an image from the current state of the buttons and propagating it to the next operators
Overrides:
go in class operator