Class SimpleObjectEqualityRawResult<T extends java.io.Serializable>
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.api.model.postprocessing.AbstractModelTaskRawResult
-
- uk.ac.warwick.dcs.sherlock.module.model.base.postprocessing.SimpleObjectEqualityRawResult<T>
-
- All Implemented Interfaces:
java.io.Serializable
public class SimpleObjectEqualityRawResult<T extends java.io.Serializable> extends AbstractModelTaskRawResult
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleObjectEqualityRawResult(ISourceFile file1, ISourceFile file2, int numObjectsFile1, int numObjectsFile2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISourceFilegetFile1()intgetFile1NumObjects()ISourceFilegetFile2()intgetFile2NumObjects()PairedTuple<java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer>getLocation(int index)java.util.List<PairedTuple<java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer>>getLocations()TgetObject(int index)java.util.List<T>getObjects()intgetSize()booleanisEmpty()Tests if the rawResult set should be discarded, as it contains no results datavoidput(T object, int file1Loc, int file2Loc)voidput(T object, int file1BlockStart, int file1BlockEnd, int file2BlockStart, int file2BlockEnd)booleantestType(AbstractModelTaskRawResult baseline)Check that this object is of the same exact type as the baseline, including check any generic types are equaljava.lang.StringtoString()
-
-
-
Constructor Detail
-
SimpleObjectEqualityRawResult
public SimpleObjectEqualityRawResult(ISourceFile file1, ISourceFile file2, int numObjectsFile1, int numObjectsFile2)
-
-
Method Detail
-
getFile1
public ISourceFile getFile1()
-
getFile1NumObjects
public int getFile1NumObjects()
-
getFile2
public ISourceFile getFile2()
-
getFile2NumObjects
public int getFile2NumObjects()
-
getLocation
public PairedTuple<java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer> getLocation(int index)
-
getLocations
public java.util.List<PairedTuple<java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer>> getLocations()
-
getObject
public T getObject(int index)
-
getObjects
public java.util.List<T> getObjects()
-
getSize
public int getSize()
-
isEmpty
public boolean isEmpty()
Description copied from class:AbstractModelTaskRawResultTests if the rawResult set should be discarded, as it contains no results data- Specified by:
isEmptyin classAbstractModelTaskRawResult- Returns:
- is empty of data
-
put
public void put(T object, int file1Loc, int file2Loc)
-
put
public void put(T object, int file1BlockStart, int file1BlockEnd, int file2BlockStart, int file2BlockEnd)
-
testType
public boolean testType(AbstractModelTaskRawResult baseline)
Description copied from class:AbstractModelTaskRawResultCheck that this object is of the same exact type as the baseline, including check any generic types are equalTODO: suggested implementation here.....
- Specified by:
testTypein classAbstractModelTaskRawResult- Parameters:
baseline- the baseline object, in the set, current instance must be of the same exact type as this- Returns:
- is same type?
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-