ostore.oil
Interface SegmentedModel
- All Superinterfaces:
- Model, QuickSerializable
- All Known Implementing Classes:
- HMM
- public interface SegmentedModel
- extends Model
An interface for introspective models which participate as part of
large, distributed models.
In addition to normal Model
functionality,
SegmentedModel
s understand how to swap tagged portions of
the model state (Segment
s) from a foreign distributor.
- Version:
- $Id: SegmentedModel.java,v 1.6 2001/11/28 23:03:15 geels Exp $
- Author:
- Dennis Geels
- See Also:
Model
,
SegmentedModel.Segment
,
HMM
Inner Class Summary |
static interface |
SegmentedModel.Segment
A single, tagged portion of the global Model state. |
add_segment
public void add_segment(SegmentedModel.Segment s)
- Incorporates the portion of the model contained in the specified
Segment
.
- Parameters:
s
- The Segment
to add.- Throws:
IllegalArgumentException
- if the Segment
object
is not of the correct subclass.- See Also:
choose_segments(int)
choose_segments
public void choose_segments(int num)
- Selects the most-relevant
num
segments to retain,
discarding all others.
- Parameters:
num
- The number of Segment
s to keep.