public class MetaObjectProfiSCT extends MetaObject implements StringFieldDataProvider, BinarySerializable
Modifier and Type | Class and Description |
---|---|
static class |
MetaObjectProfiSCT.DatabaseKeywordClassifier
Provides a
Classifier that processes list of ranked abstract objects and provides keyword classification
with words belonging to the object locator URI with the respective confidence based on the ranking distance. |
static class |
MetaObjectProfiSCT.DatabaseSupport
Utility class that allows to read/store the necessary data of the Profi objects
in a database.
|
static class |
MetaObjectProfiSCT.MetaObjectProfiSCTKwDistCosine
Object that holds only keywords and measures the distance as the
weighted Cosine distance with weights based on tf-idf algorithm.
|
static class |
MetaObjectProfiSCT.MetaObjectProfiSCTKwDistJaccard
Object that holds only keywords and measures the distance as the
weighted Jaccard with weights based on tf-idf algorithm.
|
static class |
MetaObjectProfiSCT.MetaObjectProfiSCTWithTKStrings
Extension of the MetaObjectProfiSCT that preserves also the title and keywords
strings in both binary and Java serialization.
|
static class |
MetaObjectProfiSCT.MultiWeightIgnoreProviderProfi
Implementation of
ObjectIntMultiVector.WeightProvider that has a single weight for every data array of the ObjectIntMultiVector
and it ignores a specified list of integers (created from a given list of keywords). |
static class |
MetaObjectProfiSCT.ProfiSCTWeightedCosineDistanceFunction
Class for distance functions that compute distances on keyword vectors
of two
MetaObjectProfiSCT }s using weighted Cosine distance. |
static class |
MetaObjectProfiSCT.Rights
List of rights
|
static class |
MetaObjectProfiSCT.Territory
List of territories
|
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
Modifier and Type | Field and Description |
---|---|
protected int |
added
Date this object was added to the collection
|
protected int |
archiveID
ID of the archive from which this object was added
|
protected int[] |
attractiveness
List of attractiveness values for all existing territories
|
protected ObjectColorLayout |
colorLayout
Object for the ColorLayoutType
|
protected ObjectShortVectorL1 |
colorStructure
Object for the ColorStructureType
|
static BinarySerializator |
defaultBinarySerializator
Binary serializator for this object with default caching classes
|
protected static java.lang.String[] |
descriptorNames
The list of the names for the encapsulated objects
|
protected ObjectVectorEdgecomp |
edgeHistogram
Object for the EdgeHistogramType
|
static java.lang.String |
KEYWORD_SPLIT_REGEXP
Regular expression used to split keywords
|
protected ObjectIntMultiVectorJaccard |
keyWords
Object for the KeyWordsType
|
protected java.lang.String |
keywordString
Keywords of this object as string (this is not serialized!)
|
protected ObjectXMRegionShape |
regionShape
Object for the RegionShapeType
|
protected MetaObjectProfiSCT.Rights |
rights
Rights for this object
|
protected ObjectIntVectorL1 |
scalableColor
Object for the ScalableColorType
|
static java.lang.String |
SEARCH_SPLIT_REGEXP
Regular expression used to split search string
|
protected java.util.EnumSet<MetaObjectProfiSCT.Territory> |
territories
List of territories associated with this object
|
static java.lang.String |
TITLE_SPLIT_REGEXP
Regular expression used to split title
|
protected java.lang.String |
titleString
Title of this object as string (this is not serialized!)
|
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Modifier | Constructor and Description |
---|---|
protected |
MetaObjectProfiSCT(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of MetaObjectProfiSCT loaded from binary input buffer.
|
|
MetaObjectProfiSCT(java.io.BufferedReader stream)
Creates a new instance of MetaObjectProfiSCT.
|
|
MetaObjectProfiSCT(java.io.BufferedReader stream,
boolean setEmptyAdditionalInfo)
Creates a new instance of MetaObjectProfiSCT from the given text stream.
|
|
MetaObjectProfiSCT(java.io.BufferedReader stream,
boolean haveStringWords,
boolean haveConvertedWords)
Creates a new instance of MetaObjectProfiSCT from the given text stream.
|
|
MetaObjectProfiSCT(java.io.BufferedReader stream,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex)
Creates a new instance of MetaObjectProfiSCT.
|
|
MetaObjectProfiSCT(java.io.BufferedReader stream,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex,
java.lang.String searchString)
Creates a new instance of MetaObjectProfiSCT.
|
|
MetaObjectProfiSCT(MetaObjectProfiSCT object)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT . |
|
MetaObjectProfiSCT(MetaObjectProfiSCT object,
int[] searchWordIds)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT . |
|
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String[] titleWords,
java.lang.String[] keywordWords,
java.lang.String[] searchWords,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT
and given title words, key words, and search words. |
|
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
ObjectIntMultiVectorJaccard keyWords)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT . |
|
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
java.lang.String searchString,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT
and given set of keywords. |
|
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT
and given set of keywords. |
|
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String searchString,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT
and given set of keywords. |
|
MetaObjectProfiSCT(java.lang.String locatorURI,
java.util.Map<java.lang.String,? extends LocalAbstractObject> objects,
MetaObjectProfiSCT.Rights rights,
java.util.EnumSet<MetaObjectProfiSCT.Territory> territories,
int added,
int archiveID,
int[] attractiveness)
Creates a new instance of MetaObjectProfiSCT from the given key and encapsulated objects.
|
|
MetaObjectProfiSCT(java.lang.String locatorURI,
ObjectColorLayout colorLayout,
ObjectShortVectorL1 colorStructure,
ObjectVectorEdgecomp edgeHistogram,
ObjectIntVectorL1 scalableColor,
ObjectXMRegionShape regionShape,
ObjectIntMultiVectorJaccard keyWords,
MetaObjectProfiSCT.Rights rights,
java.util.EnumSet<MetaObjectProfiSCT.Territory> territories,
int added,
int archiveID,
int[] attractiveness)
Creates a new instance of MetaObjectProfiSCT from the given key and encapsulated objects.
|
Modifier and Type | Method and Description |
---|---|
int |
binarySerialize(BinaryOutput output,
BinarySerializator serializator)
Binary-serialize this object into the
output . |
LocalAbstractObject |
clone(boolean cloneFilterChain)
Creates and returns a copy of this object.
|
LocalAbstractObject |
cloneRandomlyModify(java.lang.Object... args)
Creates and returns a randomly modified copy of this object.
|
boolean |
containsTerritory(MetaObjectProfiSCT.Territory territory)
Returns whether this object contains the given territory.
|
protected ObjectIntMultiVectorJaccard |
convertWordsToIdentifiers(WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex,
java.lang.Object title,
java.lang.Object keyword,
java.lang.Object search)
Convert the given title, key and additional words to a int multi-vector
object with Jaccard distance function.
|
boolean |
dataEquals(java.lang.Object obj)
Indicates whether some other object has the same data as this one.
|
int |
dataHashCode()
Returns sum of hash code values for all the encapsulated objects' data.
|
int |
getAdded()
Returns the date that this object was added to the collection.
|
int |
getArchiveID()
Returns the ID of the archive from which this object was added.
|
java.lang.String |
getAttractiveness()
Returns the coma-separated list of attractiveness values for all existing territories.
|
int |
getBinarySize(BinarySerializator serializator)
Returns the exact size of the binary-serialized version of this object in bytes.
|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float[] metaDistances,
float distThreshold)
The actual implementation of the metric function.
|
java.lang.String |
getKeywords()
Returns the coma-separated list of keywords for this object.
|
ObjectIntMultiVectorJaccard |
getKeyWords()
Returns the object that encapsulates the keywords for this metaobject.
|
java.lang.String[] |
getKeywordWords(IntStorageIndexed<java.lang.String> wordIndex)
Returns the key words of this object.
|
float |
getMaxDistance()
Returns a maximal possible distance for this class.
|
LocalAbstractObject |
getObject(java.lang.String name)
Returns the encapsulated object for given symbolic name.
|
int |
getObjectCount()
Returns the number of encapsulated objects.
|
java.util.Collection<java.lang.String> |
getObjectNames()
Returns a set of symbolic names of the encapsulated objects.
|
java.util.Collection<LocalAbstractObject> |
getObjects()
Returns a collection of all the encapsulated objects.
|
java.lang.String |
getRights()
Returns the rights for this object.
|
java.lang.String[] |
getSearchWords(IntStorageIndexed<java.lang.String> wordIndex)
Returns the search words of this object.
|
java.lang.String |
getStringData()
Returns the textual data provided by this object.
|
java.lang.String |
getStringData(java.lang.String fieldName)
Returns the textual data for field
fieldName provided by this object. |
java.util.Collection<java.lang.String> |
getStringDataFields()
Returns the names of the textual data fields of this object.
|
static java.lang.String[] |
getSupportedVisualDescriptorTypes()
Returns list of supported visual descriptor types that this object recognizes.
|
java.lang.String |
getTerritories()
Returns the comma-separated list of territories associated with this object.
|
java.lang.String |
getTitle()
Returns the title of this object.
|
java.lang.String[] |
getTitleWords(IntStorageIndexed<java.lang.String> wordIndex)
Returns the title words of this object.
|
static float[] |
getWeights()
Returns the weights for the respective
descriptors
that are used in the distance function. |
protected void |
writeData(java.io.OutputStream stream)
Store this object to a text stream.
|
clearSurplusData, containsObject, createMetaDistancesHolder, createSearchMetaObject, fillMetaDistances, fillMetaDistances, getDistanceImpl, getObjectFromMap, getObjectMap, getSize, implementationGetDistance, readObject, readObject, readObjects, readObjects, readObjectsHeader, toString, writeObjects, writeObjectsHeader
clone, create, create, excludeUsingPrecompDist, getDistance, getDistance, getDistance, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceLowerBound, getDistanceLowerBoundImpl, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceUpperBound, getDistanceUpperBoundImpl, getFieldsForNames, getNormDistance, getPrecomputedDistance, getPrecomputedDistance, getRandomChar, getRandomNormal, chainDestroy, chainFilter, includeUsingPrecompDist, isDistanceCompatible, parseObjectComment, peekNextChar, readAttributesFromStream, readObjectComments, readObjectCommentsWithoutData, unchainFilter, write, write, writeAttributesToStream, writeObjectComment
clone, getLocatorURI, getNoDataObject, getObjectKey, getObjectKey, getObjectLocatorURI, setObjectKey
protected static final java.lang.String[] descriptorNames
public static final java.lang.String TITLE_SPLIT_REGEXP
public static final java.lang.String KEYWORD_SPLIT_REGEXP
public static final java.lang.String SEARCH_SPLIT_REGEXP
protected ObjectColorLayout colorLayout
protected ObjectShortVectorL1 colorStructure
protected ObjectVectorEdgecomp edgeHistogram
protected ObjectIntVectorL1 scalableColor
protected ObjectXMRegionShape regionShape
protected MetaObjectProfiSCT.Rights rights
protected java.util.EnumSet<MetaObjectProfiSCT.Territory> territories
protected int added
protected int archiveID
protected int[] attractiveness
protected transient java.lang.String titleString
protected transient java.lang.String keywordString
protected ObjectIntMultiVectorJaccard keyWords
public static final BinarySerializator defaultBinarySerializator
public MetaObjectProfiSCT(java.lang.String locatorURI, ObjectColorLayout colorLayout, ObjectShortVectorL1 colorStructure, ObjectVectorEdgecomp edgeHistogram, ObjectIntVectorL1 scalableColor, ObjectXMRegionShape regionShape, ObjectIntMultiVectorJaccard keyWords, MetaObjectProfiSCT.Rights rights, java.util.EnumSet<MetaObjectProfiSCT.Territory> territories, int added, int archiveID, int[] attractiveness)
locatorURI
- locator of the metaobject (and typically all of the passed objects)colorLayout
- color layout descriptorcolorStructure
- color structure descriptoredgeHistogram
- edge histogram descriptorscalableColor
- scalable color descriptorregionShape
- region shape descriptorkeyWords
- all words descriptor (title words, keyword words, search words)rights
- the rights for this objectterritories
- the list of territories associated with this objectadded
- the date this object was added to the collectionarchiveID
- the ID of the archive from which this object was addedattractiveness
- value of the attractivenesspublic MetaObjectProfiSCT(java.lang.String locatorURI, java.util.Map<java.lang.String,? extends LocalAbstractObject> objects, MetaObjectProfiSCT.Rights rights, java.util.EnumSet<MetaObjectProfiSCT.Territory> territories, int added, int archiveID, int[] attractiveness)
locatorURI
- locator of the metaobject (and typically all of the passed objects)objects
- map of objects with the descriptorNames
as keysrights
- the rights for this objectterritories
- the list of territories associated with this objectadded
- the date this object was added to the collectionarchiveID
- the ID of the archive from which this object was addedattractiveness
- value of the attractivenesspublic MetaObjectProfiSCT(MetaObjectProfiSCT object, java.lang.String titleString, java.lang.String keywordString, ObjectIntMultiVectorJaccard keyWords)
MetaObjectProfiSCT
.
The locator, the attributes and the encapsulated objects from the source object
are
copied. The key word identifiers object as well as the title and keyword strings are replaced by the given ones.object
- the source metaobject from which to get the datatitleString
- the title of this object as stringkeywordString
- the keywords of this object as stringkeyWords
- new value for the keyWords
objectpublic MetaObjectProfiSCT(MetaObjectProfiSCT object)
MetaObjectProfiSCT
.
The locator, the attributes and the encapsulated objects from the source object
are
taken.object
- the source metaobject from which to get the datapublic MetaObjectProfiSCT(MetaObjectProfiSCT object, java.lang.String titleString, java.lang.String keywordString, java.lang.String searchString, WordExpander expander, Stemmer stemmer, IntStorageIndexed<java.lang.String> wordIndex)
MetaObjectProfiSCT
and given set of keywords. The locator and the encapsulated objects from the source
object
are taken.object
- the source metaobject from which to get the datatitleString
- the title to set for the new objectkeywordString
- the keywords to set for the new objectsearchString
- the searched string to set for the new objectexpander
- instance for expanding the list of title, key, and search wordsstemmer
- a Stemmer
for word transformationwordIndex
- the index for translating words to addressespublic MetaObjectProfiSCT(MetaObjectProfiSCT object, java.lang.String[] titleWords, java.lang.String[] keywordWords, java.lang.String[] searchWords, WordExpander expander, Stemmer stemmer, IntStorageIndexed<java.lang.String> wordIndex)
MetaObjectProfiSCT
and given title words, key words, and search words. The locator and the encapsulated objects from the source
object
are taken.object
- the source metaobject from which to get the datatitleWords
- the title to set for the new objectkeywordWords
- the keywords to set for the new objectsearchWords
- the searched string to set for the new objectexpander
- instance for expanding the list of title, key, and search wordsstemmer
- a Stemmer
for word transformationwordIndex
- the index for translating words to addressespublic MetaObjectProfiSCT(MetaObjectProfiSCT object, java.lang.String titleString, java.lang.String keywordString, WordExpander expander, Stemmer stemmer, IntStorageIndexed<java.lang.String> wordIndex)
MetaObjectProfiSCT
and given set of keywords. The locator and the encapsulated objects from the source
object
are taken.object
- the source metaobject from which to get the datatitleString
- the title words to set for the new objectkeywordString
- the keyword words to set for the new objectexpander
- instance for expanding the list of title and key wordsstemmer
- a Stemmer
for word transformationwordIndex
- the index for translating words to addressespublic MetaObjectProfiSCT(MetaObjectProfiSCT object, int[] searchWordIds)
MetaObjectProfiSCT
.
All the encapsulated objects and the locator are taken from the source object
.object
- the source metaobject from which to get the datasearchWordIds
- the identifiers of the searched words to set for the new object (in addition to the copied keyword and title words)public MetaObjectProfiSCT(MetaObjectProfiSCT object, java.lang.String searchString, WordExpander expander, Stemmer stemmer, IntStorageIndexed<java.lang.String> wordIndex) throws TextConversionException
MetaObjectProfiSCT
and given set of keywords. The locator and the encapsulated objects from the source
object
are taken.object
- the source metaobject from which to get the datasearchString
- the searched string to set for the new objectexpander
- instance for expanding the list of search wordsstemmer
- a Stemmer
for word transformationwordIndex
- the index for translating words to addressesTextConversionException
- if there was an error stemming the wordpublic MetaObjectProfiSCT(java.io.BufferedReader stream, boolean setEmptyAdditionalInfo) throws java.io.IOException
LocalAbstractObject
is loaded.stream
- the stream from which the data are readsetEmptyAdditionalInfo
- flag whether to set the additional info data (rights, territories, added, and archiveID) to empty valuesjava.io.IOException
- if there was an error reading the data from the streampublic MetaObjectProfiSCT(java.io.BufferedReader stream, boolean haveStringWords, boolean haveConvertedWords) throws java.io.IOException
LocalAbstractObject
is loaded.stream
- the stream from which the data are readhaveStringWords
- flag whether the data contains two lines of strings with title and keywordshaveConvertedWords
- flag whether the data contains two lines of integer vectors with title and keywords identifiersjava.io.IOException
- if there was an error reading the data from the streampublic MetaObjectProfiSCT(java.io.BufferedReader stream) throws java.io.IOException
stream
- stream to read the data fromjava.io.IOException
- if reading from the stream failspublic MetaObjectProfiSCT(java.io.BufferedReader stream, Stemmer stemmer, IntStorageIndexed<java.lang.String> wordIndex, java.lang.String searchString) throws java.io.IOException
stream
- stream to read the data fromstemmer
- a Stemmer
for word transformationwordIndex
- the index for translating words to addressessearchString
- the additional keywords that will be encapsulated in the keyWords object as the third arrayjava.io.IOException
- if reading from the stream failspublic MetaObjectProfiSCT(java.io.BufferedReader stream, Stemmer stemmer, IntStorageIndexed<java.lang.String> wordIndex) throws java.io.IOException
stream
- stream to read the data fromstemmer
- a Stemmer
for word transformationwordIndex
- the index for translating words to addressesjava.io.IOException
- if reading from the stream failsprotected MetaObjectProfiSCT(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the buffer to read the MetaObjectProfiSCT fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the bufferprotected final ObjectIntMultiVectorJaccard convertWordsToIdentifiers(WordExpander expander, Stemmer stemmer, IntStorageIndexed<java.lang.String> wordIndex, java.lang.Object title, java.lang.Object keyword, java.lang.Object search)
stemmer
- the stemmer to use for stemming of the wordswordIndex
- the index used to transform the words into integerstitle
- the title string (or words array) to convertkeyword
- the keywords string (or words array) to convertsearch
- the search string (or words array) to convertexpander
- instance for expanding the list of title, key, and search wordspublic static java.lang.String[] getSupportedVisualDescriptorTypes()
public java.lang.String getTitle()
keyWords
.public java.lang.String[] getTitleWords(IntStorageIndexed<java.lang.String> wordIndex) throws TextConversionException
keyWords
,
the wordIndex
is used to transform it back.wordIndex
- the index used to transform the integers to wordsTextConversionException
- if there was an error reading a word with a given identifier from the indexpublic java.lang.String getKeywords()
keyWords
.public java.lang.String[] getKeywordWords(IntStorageIndexed<java.lang.String> wordIndex) throws TextConversionException
keyWords
,
the wordIndex
is used to transform them back.wordIndex
- the index used to transform the integers to wordsTextConversionException
- if there was an error reading a word with a given identifier from the indexpublic java.lang.String[] getSearchWords(IntStorageIndexed<java.lang.String> wordIndex) throws TextConversionException
wordIndex
- the index used to transform the integers to wordsTextConversionException
- if there was an error reading a word with a given identifier from the indexpublic java.util.Collection<java.lang.String> getStringDataFields()
StringFieldDataProvider
getStringDataFields
in interface StringFieldDataProvider
public java.lang.String getStringData(java.lang.String fieldName) throws java.lang.IllegalArgumentException
StringFieldDataProvider
fieldName
provided by this object.getStringData
in interface StringFieldDataProvider
fieldName
- the name of the field the data of which to returnfieldName
java.lang.IllegalArgumentException
- if the given field name is unknown for this data providerpublic java.lang.String getStringData()
StringDataProvider
getStringData
in interface StringDataProvider
public java.lang.String getRights()
public java.lang.String getTerritories()
public boolean containsTerritory(MetaObjectProfiSCT.Territory territory)
territory
- the territory to checkpublic int getAdded()
public int getArchiveID()
public java.lang.String getAttractiveness()
public int getObjectCount()
getObjectCount
in class MetaObject
public LocalAbstractObject getObject(java.lang.String name)
getObject
in class MetaObject
name
- the symbolic name of the object to returnpublic java.util.Collection<LocalAbstractObject> getObjects()
MetaObject
getObjects
in class MetaObject
public java.util.Collection<java.lang.String> getObjectNames()
MetaObject
getObjectNames
in class MetaObject
public ObjectIntMultiVectorJaccard getKeyWords()
public int dataHashCode()
MetaObject
dataHashCode
in class MetaObject
public boolean dataEquals(java.lang.Object obj)
MetaObject
dataEquals
in class MetaObject
obj
- the reference object with which to compare (if it is not MetaObject, this method will return false
)true
if this object is the same as the obj
argument; false
otherwise.protected float getDistanceImpl(LocalAbstractObject obj, float[] metaDistances, float distThreshold)
MetaObject
metaDistances
parameter is not null, it should be filled
with the distances to the respective encapsulated objects (method
fillMetaDistances
can be used).getDistanceImpl
in class MetaObject
obj
- the object to compute distance tometaDistances
- the array that is filled with the distances of the respective encapsulated objects, if it is not nulldistThreshold
- the threshold value on the distanceLocalAbstractObject.getDistance(messif.objects.LocalAbstractObject)
public static float[] getWeights()
descriptors
that are used in the distance function.public float getMaxDistance()
LocalAbstractObject
LocalAbstractObject.MAX_DISTANCE
.getMaxDistance
in class LocalAbstractObject
public LocalAbstractObject clone(boolean cloneFilterChain) throws java.lang.CloneNotSupportedException
clone
in class LocalAbstractObject
cloneFilterChain
- the flag whether the filter chain must be cloned as well.java.lang.CloneNotSupportedException
- if the object's class does not support cloning or there was an errorpublic LocalAbstractObject cloneRandomlyModify(java.lang.Object... args) throws java.lang.CloneNotSupportedException
LocalAbstractObject
cloneRandomlyModify
in class LocalAbstractObject
args
- any parameters required by the subclass implementation - usually two objects with
the minimal and the maximal possible valuesjava.lang.CloneNotSupportedException
- if the object's class does not support cloning or there was an errorprotected void writeData(java.io.OutputStream stream) throws java.io.IOException
writeData
in class LocalAbstractObject
stream
- the stream to store this object tojava.io.IOException
- if there was an error while writing to streampublic int binarySerialize(BinaryOutput output, BinarySerializator serializator) throws java.io.IOException
LocalAbstractObject
output
.binarySerialize
in interface BinarySerializable
binarySerialize
in class LocalAbstractObject
output
- the output that this object is binary-serialized intoserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error during serializationpublic int getBinarySize(BinarySerializator serializator)
LocalAbstractObject
getBinarySize
in interface BinarySerializable
getBinarySize
in class LocalAbstractObject
serializator
- the serializator used to write objects