All Packages Class Hierarchy This Package Previous Next Index
Class electronics.ui.ElectronicGateFigureFactory
java.lang.Object
|
+----electronics.ui.ElectronicGateFigureFactory
- public class ElectronicGateFigureFactory
- extends Object
A factory for electronic gates. An ElectronicGateFactory object can produce
gates according to their names.
- Author:
- Shmulik London
-
ElectronicGateFigureFactory()
-
-
createElectronicGateFigure(String)
- Creates an electronic gate figure that correspond to the given name.
ElectronicGateFigureFactory
public ElectronicGateFigureFactory()
createElectronicGateFigure
public ElectronicGateFigure createElectronicGateFigure(String type) throws UnfamiliarGateException
- Creates an electronic gate figure that correspond to the given name.
- Parameters:
- type - The name of the electronic gate type
(OR, AND, NOT, NOR, NAND, XOR).
- Throws: UnfamiliarGateException
- The specified gate name
is not known.
All Packages Class Hierarchy This Package Previous Next Index