Lines Matching defs:scopes

58     // SA only scopes property.
62 // Hashtable key for multicast scopes.
71 * A record for all DAs supporting exactly the same set of scopes.
79 // The scopes supported.
81 Vector scopes = null; // String scope names
90 * MULTICAST_KEY - Vector of scopes from the incoming vector that are not
94 * equivalence classes of DAs that all support the same set of scopes.
95 * Only DAs supporting one or more scopes in the incoming vector
99 * set of scopes are mutually exclusive. For example, if DA1 supports
100 * scopes A, B, and C; and DA2 supports scopes C and D, then they
105 * @param scopes The scopes for which DAs are required.
106 * @return A Hashtable with the multicast scopes and DAAddresses.
109 abstract Hashtable findDAScopes(Vector scopes)
116 * @param scopes The scopes.
120 abstract boolean removeDA(InetAddress address, Vector scopes);
123 * Return a vector of scopes that the SA or UA client should use.
128 * @return Vector of scopes for the SA or UA client to use.
133 // First, get the DA addresses v.s. scopes table from the DAtable.
135 // if any. We don't filter on any scopes, since we want all of
136 // them. We are only interested in v2 scopes here.
138 Vector scopes = new Vector();
139 Hashtable daRec = daTable.findDAScopes(scopes);
144 // Go through the equivalence classes and pull out scopes.
150 Vector v = rec.scopes;
157 // Unicast scopes take precedence over multicast scopes,
160 if (!scopes.contains(s)) {
161 scopes.addElement(s);
168 return scopes;
249 // Utility functions for DA filtering and handling scopes.
252 // Filter scopes, removing any not on the filter list if inVector is
256 filterScopes(Vector scopes, Vector filter, boolean inVector) {
264 while (i < scopes.size()) {
265 String scope = (String)scopes.elementAt(i);
269 scopes.removeElementAt(i);
281 static boolean addToEquivClass(String daaddr, Vector scopes, Vector ret) {
310 Vector dascopes = rec.scopes;
317 if (!scopes.contains(scope)) {
330 rec.scopes = (Vector)scopes.clone();
359 static void validateScopes(Vector scopes, Locale locale)
364 if (scopes == null || scopes.size() <= 0) {
377 for (i = 0; i < scopes.size(); i++) {
378 Object o = scopes.elementAt(i);
385 new Object[] {scopes});
395 new Object[] {scopes});
428 scopes.setElementAt(str, i);
440 scopes.removeElementAt(i);