korat.gui.viz.metamodel
Class SigFactory
java.lang.Object
korat.gui.viz.metamodel.SigFactory
public class SigFactory
- extends Object
- Factory for the
AlloySig
class.
- Keeps tracks of all created
AlloySig
objects.
- Ensures that the names of all
AlloySig
objects are
unique.
- Author:
- Aleksandar Milicevic
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
private static SigFactory instance
allSigs
private Map<String,AlloySig> allSigs
SigFactory
private SigFactory()
getInstance
public static SigFactory getInstance()
getAllSigs
public Collection<AlloySig> getAllSigs()
getAlloySig
public AlloySig getAlloySig(String name)
getAlloySig
public AlloySig getAlloySig(String name,
String extendsName)
throws SigDoesNotExistException
- Throws:
SigDoesNotExistException
clear
public void clear()