projects-jenz/ArtificialAutism/src/main/java/FunctionLayer/SimilarityMatrix.java

74 lines
1.8 KiB
Java
Raw Normal View History

2019-03-02 15:10:46 +01:00
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package FunctionLayer;
import FunctionLayer.StanfordParser.SentimentValueCache;
2019-03-02 15:10:46 +01:00
/**
*
* @author install1
*/
public class SimilarityMatrix {
2019-03-02 15:10:46 +01:00
2019-08-03 14:35:09 +02:00
private String PrimaryString;
private String SecondaryString;
private double distance;
private SentimentValueCache cacheValue1;
private SentimentValueCache cacheValue2;
public final double getDistance() {
2019-03-02 15:10:46 +01:00
return distance;
}
public final void setDistance(double distance) {
2019-03-02 15:10:46 +01:00
this.distance = distance;
}
public SimilarityMatrix(String str1, String str2) {
this.PrimaryString = str1;
this.SecondaryString = str2;
}
public SimilarityMatrix(String str1, String str2, double result) {
this.PrimaryString = str1;
this.SecondaryString = str2;
this.distance = result;
}
public final String getPrimaryString() {
2019-03-02 15:10:46 +01:00
return PrimaryString;
}
public final void setPrimaryString(String PrimaryString) {
2019-03-02 15:10:46 +01:00
this.PrimaryString = PrimaryString;
}
public final String getSecondaryString() {
2019-03-02 15:10:46 +01:00
return SecondaryString;
}
public final void setSecondaryString(String SecondaryString) {
2019-03-02 15:10:46 +01:00
this.SecondaryString = SecondaryString;
}
public final SentimentValueCache getCacheValue1() {
return cacheValue1;
}
public final void setCacheValue1(SentimentValueCache cacheValue1) {
this.cacheValue1 = cacheValue1;
}
2019-03-02 15:10:46 +01:00
2019-08-03 14:35:09 +02:00
public final SentimentValueCache getCacheValue2() {
return cacheValue2;
}
public final void setCacheValue2(SentimentValueCache cacheValue2) {
this.cacheValue2 = cacheValue2;
}
2019-03-02 15:10:46 +01:00
}