public interface RmiDataSink extends Remote
VectorG elements, which can either be added, #addData or
set (i.e. replace old data if there is any) with #setData.
Some sinks may also need #metaData assigned to before they can
definitely answer the #acceptsData question. Metadata might be
as simple as a designation which indices carries dependent and independent
variables, error estimates to this data etc. Some sinks may further be
RmiVariableDepending.
Proper implementations of this interface may display data in a datacanvas.
| Modifier and Type | Method and Description |
|---|---|
boolean |
rmiAcceptsData(String type)
Return true, if this sink accepts the flavour of this data.
|
boolean |
rmiAddData(List<VectorG> d)
Adds this data to the sink.
|
boolean |
rmiAddData(Map<Object,VectorG> d)
For data that is not discernible by an index, but rather by a key.
|
boolean |
rmiClearData()
Clears all data.
|
boolean |
rmiMetaData(Map<String,? extends Serializable> meta)
Assigns some meta-data to the data sink, providing additional
information on how to interpret the data.
|
boolean |
rmiSetData(List<VectorG> d)
Sets this data as the only data in the sink.
|
boolean |
rmiSetData(Map<Object,VectorG> d)
For data that is not discernible by an index, but rather by a key.
|
boolean rmiAcceptsData(String type) throws RemoteException
#addData or
#setData return true, but returning false here guarantees that
these both methods will return false and thus the effort can be spared.
RemoteExceptionboolean rmiMetaData(Map<String,? extends Serializable> meta) throws RemoteException
RemoteExceptionboolean rmiClearData()
throws RemoteException
#setData should have the same effect
as calling this method, followed by an addData.RemoteExceptionboolean rmiAddData(List<VectorG> d) throws RemoteException
RemoteExceptionboolean rmiAddData(Map<Object,VectorG> d) throws RemoteException
RemoteExceptionboolean rmiSetData(List<VectorG> d) throws RemoteException
RemoteExceptionboolean rmiSetData(Map<Object,VectorG> d) throws RemoteException
RemoteException