KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > rbtreesizesequence > SizeSequenceInterface


1 /**
2 * Copyright (c) 2003 Daffodil Software Ltd., India all rights reserved.
3 * This library is free software; you can redistribute it and/or modify
4 * it under the terms of version 2.1 of the GNU Lesser General Public License as
5 * published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU Lesser General Public License for more details.
11 *
12 * You should have received a copy of the GNU Lesser General Public License
13 * along with this library; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15 */

16
17
18 package com.daffodilwoods.rbtreesizesequence;
19
20 public interface SizeSequenceInterface extends SizeSequence{
21
22     public Object JavaDoc getKeyAtDistance(Object JavaDoc key, int distance);
23
24     public void markInvalid(Object JavaDoc locationIdFrom, Object JavaDoc locationIdTo);
25
26
27     public int refreshSegment(Object JavaDoc locationIdFrom, Object JavaDoc locationIdTo);
28
29     public void updateSegment(Object JavaDoc locationIdFrom, Object JavaDoc locationIdTo, int delta);
30
31     public LocationInformation getLocationInformation(LocationInformation locationInformation);
32
33     public LocationInformation getLocationInformation(Object JavaDoc locationId, int distance);
34
35     public void addDistanceListener(DistanceAdapter adp);
36
37     public void removeDistanceListener(DistanceAdapter adp);
38
39     public long checkDistance(Object JavaDoc locationIdFrom, Object JavaDoc locationIdTo, int upto);
40
41     public int getDistance(Object JavaDoc locationIdFrom, Object JavaDoc locationIdTo);
42
43     public int getDistance(Object JavaDoc locationIdFrom, Object JavaDoc locationIdTo, boolean force);
44
45     public boolean isSizeSequenceValid();
46     public void showSequentially();
47 }
48
Popular Tags