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

Constructor Index

 o ElectronicGateFigureFactory()

Method Index

 o createElectronicGateFigure(String)
Creates an electronic gate figure that correspond to the given name.

Constructors

 o ElectronicGateFigureFactory
 public ElectronicGateFigureFactory()

Methods

 o 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