drm.core
Interface IDRM
- All Known Implementing Classes:
- Node
- public interface IDRM
Interface for getting information about the DRM collective.
The object passed to the agents as a parameter of setBase
implements not only IBase but also
this interface if the agent lives on a Node.
This way agents that live on a Node can get information
about the DRM collective the Node participates in.
getContribution
public ContributionBox getContribution(java.lang.String nodeName)
- Returns the contribution that belongs to the given node name.
If the contribution of the given node is not known, returns null.
getNewestContribution
public ContributionBox getNewestContribution()
- Returns the most up-to-date contribution. Returns null if the
node has never communicated with anyone.
getContributions
public java.util.List getContributions()
- Returns all known contributions in the DRM collective.
Dynamic type of objects is
ContributionBox
, and the
type of the contribution field is NodeContribution
.
Returned list might be empty, but it's never null.
- See Also:
Collective.getContributions()