|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.inb.biomoby.central.model.AbstractModel<Service> org.inb.biomoby.central.model.ServicesModel
public class ServicesModel
BioMoby services model implementation class. The class provides "readonly" functionality providing at the same time a local cache support. The cache is automatically updated.
Method Summary | |
---|---|
boolean |
addElement(Service element)
Method to register a service with a BioMoby Registry. |
List<Service> |
getElements()
Method to get all services from the model |
static ServicesModel |
instance()
|
void |
modelCleared()
|
void |
modelObjectChanged(MobyCentral mobyCentral1,
MobyCentral mobyCentral2)
|
void |
modelObjectInserted(MobyCentral mobyCentral)
|
void |
modelObjectRemoved(MobyCentral mobyCentral)
|
void |
reload()
Method to reload the model from a BioMoby Registry (also updating a cache) |
boolean |
removeElement(Service element)
Method to unregister a service from a BioMoby Registry. |
void |
run()
|
void |
setCentral(MobyCentral central)
Even the method declared public it is recommended to set BioMoby Registry globaly through a MobyCentralModel. |
boolean |
updateElement(Service element1,
Service element2)
A method that updates a service description referred by element1 with data provided by element2. |
Methods inherited from class org.inb.biomoby.central.model.AbstractModel |
---|
addListener, getElement |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setCentral(MobyCentral central)
central
- - BioMoby Registry to get the services frompublic void reload()
public List<Service> getElements()
getElements
in class AbstractModel<Service>
public boolean addElement(Service element)
addElement
in class AbstractModel<Service>
element
- - a new service to be registered with BioMoby Registry
public boolean removeElement(Service element)
removeElement
in class AbstractModel<Service>
element
- - service to be unregistered
public boolean updateElement(Service element1, Service element2)
updateElement
in class AbstractModel<Service>
element1
- - a service in the model to be updatedelement2
- - a service that used as a data source for the updated object
public void modelCleared()
modelCleared
in interface ModelListener<MobyCentral>
public void modelObjectInserted(MobyCentral mobyCentral)
modelObjectInserted
in interface ModelListener<MobyCentral>
public void modelObjectRemoved(MobyCentral mobyCentral)
modelObjectRemoved
in interface ModelListener<MobyCentral>
public void modelObjectChanged(MobyCentral mobyCentral1, MobyCentral mobyCentral2)
modelObjectChanged
in interface ModelListener<MobyCentral>
public void run()
run
in interface Runnable
public static ServicesModel instance()
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |