Class Gate

java.lang.Object
   |
   +----Gate

public abstract class Gate
extends Object
implements Port
A component that has one output.


Constructor Index

 o Gate()

Method Index

 o Output()
An abstract function that return the output.
 o ReadyOutput()
A public interface to ask if the component was ready to output.
 o SetInput(int, Port)
Set the input ports of a gate.

Constructors

 o Gate
 public Gate()

Methods

 o Output
 public abstract boolean Output()
An abstract function that return the output.

Returns:
the output.
See Also:
Output
 o ReadyOutput
 public boolean ReadyOutput()
A public interface to ask if the component was ready to output.

Returns:
if the gate was ready to output.
See Also:
ReadyOutput
 o SetInput
 public void SetInput(int index,
                      Port p)
Set the input ports of a gate.

Parameters:
index - the index of the input port to set.
See Also:
Port