com.k_int.hss
Class AggregateFragmentSource
java.lang.Object
|
+--java.util.Observable
|
+--com.k_int.hss.AggregateFragmentSource
- All Implemented Interfaces:
- InformationFragmentSource
- public class AggregateFragmentSource
- extends java.util.Observable
- implements InformationFragmentSource
AggregateFragmentSource.
Object used in conunction with HeterogeneousSetOfSearchable object to track the progress of a
specific HSS query and provide access to it's results (And component searches)
- Version:
- $Id: AggregateFragmentSource.java,v 1.6 2001/06/19 17:19:59 ianibbo Exp $
- Author:
- Ian Ibbotson
- See Also:
InformationFragmentSource
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subset_observer
public java.util.Observer subset_observer
AggregateFragmentSource
public AggregateFragmentSource()
finalize
protected void finalize()
- Overrides:
finalize in class java.lang.Object
addSource
public void addSource(InformationFragmentSource s)
getFragment
public InformationFragment getFragment(java.lang.String handle)
- Description copied from interface:
InformationFragmentSource
- Allow access to the set of objects based on a handle system (DOI?)
- Specified by:
getFragment in interface InformationFragmentSource
getFragment
public InformationFragment getFragment(int index)
throws PresentException
- Description copied from interface:
InformationFragmentSource
- Position based access to the result set. Implementation must
be 1 based: IE, First record in result set is 1 not 0.
Local mappings (e.g to vector) must account for this!
- Specified by:
getFragment in interface InformationFragmentSource
getFragment
public InformationFragment[] getFragment(int starting_fragment,
int count)
throws PresentException
- Description copied from interface:
InformationFragmentSource
- Position based range access to the result set. Implementation must
be 1 based: IE, First record in result set is 1 not 0.
Local mappings (e.g to vector) must account for this!
- Specified by:
getFragment in interface InformationFragmentSource
getFragmentCount
public int getFragmentCount()
- Description copied from interface:
InformationFragmentSource
- Current number of fragments available
- Specified by:
getFragmentCount in interface InformationFragmentSource
newRecordsAvailable
public void newRecordsAvailable(InformationFragmentSource ifs,
int i)
addFragmentSourceObserver
public void addFragmentSourceObserver(java.util.Observer o)
- Description copied from interface:
InformationFragmentSource
- For notification of events
This object to be used by objects only interested in being notified
about the changing numbers of available records
- Specified by:
addFragmentSourceObserver in interface InformationFragmentSource
destroy
public void destroy()
- Description copied from interface:
InformationFragmentSource
- Release all resources and shut down the object
- Specified by:
destroy in interface InformationFragmentSource
getStatusReport
public java.lang.String getStatusReport()
- Description copied from interface:
InformationFragmentSource
- Return a string based status report intended for display to the user
Typical FragmentSource states include EMPTY, FILLING, COMPLETE, and SOURCE_NO_LONGER_AVAILABLE
these should be presented in a human readable form.
- Specified by:
getStatusReport in interface InformationFragmentSource
Copyright © 2001 Knowledge Integration Ltd. All Rights Reserved.