Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
groupdefiner [2014/08/28 15:07] rafael [Usage] |
groupdefiner [2017/07/21 03:08] (current) |
||
---|---|---|---|
Line 60: | Line 60: | ||
</ | </ | ||
+ | Implementado o GroupSelector, | ||
+ | <file java GroupDefinerMock.java> | ||
+ | public class GroupDefinerMock { | ||
+ | |||
+ | /** | ||
+ | * @param args | ||
+ | */ | ||
+ | public static void main(final String[] args) { | ||
+ | new GroupDefiner(new GroupSelectorMock()); | ||
+ | } | ||
+ | |||
+ | } | ||
+ | </ | ||
+ | |||
+ | A classe GroupSelectorMock é como segue: | ||
+ | |||
+ | <file java GroupSelectorMock.java> | ||
+ | public class GroupSelectorMock implements GroupSelector { | ||
+ | |||
+ | @Override | ||
+ | public int getGroupType() { | ||
+ | return 10; | ||
+ | } | ||
+ | |||
+ | @Override | ||
+ | public Set< | ||
+ | System.out.println(nodeMessage.toString()); | ||
+ | |||
+ | return new TreeSet< | ||
+ | } | ||
+ | |||
+ | } | ||
+ | </ | ||
===== Architecture ===== | ===== Architecture ===== | ||
The GroupDefiner internally consists of a generic message processing part, and an application-specific part, the //Group selection module//. The generic part is responsible for reading any application message disseminated in the DDS domain, recording the current groups associated with the message and handing the message' | The GroupDefiner internally consists of a generic message processing part, and an application-specific part, the //Group selection module//. The generic part is responsible for reading any application message disseminated in the DDS domain, recording the current groups associated with the message and handing the message' |