org.embl.ebi.escience.scuflui.shared
Class ScuflModelSet

java.lang.Object
  extended by org.embl.ebi.escience.scuflui.shared.ScuflModelSet

public class ScuflModelSet
extends java.lang.Object

A collection of open workflow models. A listener can be provided to make is possible to detect the addition and removal of models.

Author:
Stuart Owen, Stian Soiland

Nested Class Summary
static interface ScuflModelSet.ScuflModelSetListener
           
 
Method Summary
 void addListener(ScuflModelSet.ScuflModelSetListener listener)
           
 void addModel(ScuflModel model)
           
static ScuflModelSet getInstance()
          Singleton constructor
 java.util.Set<ScuflModel> getModels()
           
 boolean isEmpty()
           
 void removeListener(ScuflModelSet.ScuflModelSetListener listener)
           
 void removeModel(ScuflModel model)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ScuflModelSet getInstance()
Singleton constructor

Returns:
Singleton instance of ScuflModelSet

isEmpty

public boolean isEmpty()

size

public int size()

getModels

public java.util.Set<ScuflModel> getModels()

addListener

public void addListener(ScuflModelSet.ScuflModelSetListener listener)

removeListener

public void removeListener(ScuflModelSet.ScuflModelSetListener listener)

addModel

public void addModel(ScuflModel model)

removeModel

public void removeModel(ScuflModel model)