⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 destinationset.html

📁 发布/订阅系统路由重配算法,可应用于ad hoc环境
💻 HTML
📖 第 1 页 / 共 2 页
字号:
destinations</H3><PRE>protected <A HREF="../util/SimpleHashtable.html" title="class in util">SimpleHashtable</A> <B>destinations</B></PRE><DL><DD>The underlying hashtable the destination set is based on.<P><DL></DL></DL><HR><A NAME="message"><!-- --></A><H3>message</H3><PRE>protected <A HREF="../com/Message.html" title="class in com">Message</A> <B>message</B></PRE><DL><DD>The message or filter to be mapped to added destinations.<P><DL></DL></DL><HR><A NAME="filter"><!-- --></A><H3>filter</H3><PRE>protected <A HREF="../broker/Filter.html" title="class in broker">Filter</A> <B>filter</B></PRE><DL><DL></DL></DL><HR><A NAME="restricted"><!-- --></A><H3>restricted</H3><PRE>protected boolean <B>restricted</B></PRE><DL><DD>Flag, if adding destinations is allowed.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DestinationSet()"><!-- --></A><H3>DestinationSet</H3><PRE>public <B>DestinationSet</B>()</PRE><DL><DD>Creates an empty destination set.<P></DL><HR><A NAME="DestinationSet(com.Message)"><!-- --></A><H3>DestinationSet</H3><PRE>public <B>DestinationSet</B>(<A HREF="../com/Message.html" title="class in com">Message</A>&nbsp;message)</PRE><DL><DD>Creates an empty destination set.<P><DT><B>Parameters:</B><DD><CODE>message</CODE> - message to be mapped to added destinations.</DL><HR><A NAME="DestinationSet(broker.Filter)"><!-- --></A><H3>DestinationSet</H3><PRE>public <B>DestinationSet</B>(<A HREF="../broker/Filter.html" title="class in broker">Filter</A>&nbsp;filter)</PRE><DL><DD>Creates an empty destination set.<P><DT><B>Parameters:</B><DD><CODE>filter</CODE> - filter to be mapped to added destinations.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setMessage(com.Message)"><!-- --></A><H3>setMessage</H3><PRE>public void <B>setMessage</B>(<A HREF="../com/Message.html" title="class in com">Message</A>&nbsp;message)</PRE><DL><DD>Sets the message, which is mapped to all added destinations. Overrides a filter previously set.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - messge which is mapped to all added destinations.</DL></DD></DL><HR><A NAME="getMessage()"><!-- --></A><H3>getMessage</H3><PRE>public <A HREF="../com/Message.html" title="class in com">Message</A> <B>getMessage</B>()</PRE><DL><DD>Returns the last message, which was set.<P><DD><DL><DT><B>Returns:</B><DD>the last message, which was set.</DL></DD></DL><HR><A NAME="setFilter(broker.Filter)"><!-- --></A><H3>setFilter</H3><PRE>public void <B>setFilter</B>(<A HREF="../broker/Filter.html" title="class in broker">Filter</A>&nbsp;filter)</PRE><DL><DD>Sets the filter, which is mapped to all added destinations. Overrides a message previously set.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</CODE> - filter which is mapped to all added destinations.</DL></DD></DL><HR><A NAME="getFilter()"><!-- --></A><H3>getFilter</H3><PRE>public <A HREF="../broker/Filter.html" title="class in broker">Filter</A> <B>getFilter</B>()</PRE><DL><DD>Returns the last filter, which was set.<P><DD><DL><DT><B>Returns:</B><DD>the last filter, which was set.</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Returns true, if the destination set maps no destination to a message.<P><DD><DL><DT><B>Returns:</B><DD>true, if the destination set maps no destination to a message,         otherwise false.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Clears all destinations.<P><DD><DL></DL></DD></DL><HR><A NAME="iterator()"><!-- --></A><H3>iterator</H3><PRE>public java.util.Iterator <B>iterator</B>()</PRE><DL><DD>Returns a new Iterator to access the elements in the set.<P><DD><DL><DT><B>Returns:</B><DD>a set iterator.</DL></DD></DL><HR><A NAME="add(broker.Destination)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../broker/Destination.html" title="interface in broker">Destination</A>&nbsp;destination)</PRE><DL><DD>Adds a destination to the set, if it is not restricted. A previously specified message or filter is mapped to the added destination.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>destination</CODE> - the destination to add.</DL></DD></DL><HR><A NAME="addAll(java.util.Collection)"><!-- --></A><H3>addAll</H3><PRE>public void <B>addAll</B>(java.util.Collection&nbsp;destinations)</PRE><DL><DD>Adds a all destinations to the set, if it is not restricted. A previously specified message or filter is mapped to the added destinations.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>destinations</CODE> - the destinations to add.</DL></DD></DL><HR><A NAME="remove(broker.Destination)"><!-- --></A><H3>remove</H3><PRE>public void <B>remove</B>(<A HREF="../broker/Destination.html" title="interface in broker">Destination</A>&nbsp;destination)</PRE><DL><DD>Removes a destination from the set.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>destination</CODE> - the destination to remove.</DL></DD></DL><HR><A NAME="contains(broker.Destination)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(<A HREF="../broker/Destination.html" title="interface in broker">Destination</A>&nbsp;destination)</PRE><DL><DD>Returns true if the destination set contains the specified destination.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>destination</CODE> - the destination.<DT><B>Returns:</B><DD>true if the destination set contains the specified destination.</DL></DD></DL><HR><A NAME="restrictTo(broker.Destination)"><!-- --></A><H3>restrictTo</H3><PRE>public void <B>restrictTo</B>(<A HREF="../broker/Destination.html" title="interface in broker">Destination</A>&nbsp;destination)</PRE><DL><DD>Restricts the set to the specified destination. If the specified destination is not a member of the set,  the result is an empty set.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>destination</CODE> - the specified destination.</DL></DD></DL><HR><A NAME="addFilters(broker.DestinationSet)"><!-- --></A><H3>addFilters</H3><PRE>public void <B>addFilters</B>(<A HREF="../broker/DestinationSet.html" title="class in broker">DestinationSet</A>&nbsp;uncoveredDestinations)</PRE><DL><DD>Adds all mapped filters to the uncovered subscriptions.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>uncoveredDestinations</CODE> - a destination set containing the uncovered        filters with its destinations.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../broker/Destination.html" title="interface in broker"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../broker/DestinationSet.Entry.html" title="class in broker"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DestinationSet.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -