SCViewer/com.minres.scviewer.databas.../src/com/minres/scviewer/database/text/TxRelation.groovy

37 lines
637 B
Groovy
Raw Normal View History

package com.minres.scviewer.database.text
2015-01-01 23:17:32 +01:00
2015-01-06 17:14:16 +01:00
import com.minres.scviewer.database.ITxRelation
import com.minres.scviewer.database.ITx;
import com.minres.scviewer.database.RelationType;
2015-01-01 23:17:32 +01:00
2015-01-06 17:14:16 +01:00
class TxRelation implements ITxRelation {
Tx source
2015-01-01 23:17:32 +01:00
2015-01-06 17:14:16 +01:00
Tx target
2015-01-01 23:17:32 +01:00
RelationType relationType
2015-01-06 17:14:16 +01:00
public TxRelation(RelationType relationType, Tx source, Tx target) {
2015-01-01 23:17:32 +01:00
this.source = source;
this.target = target;
this.relationType = relationType;
}
@Override
public RelationType getRelationType() {
return relationType;
}
@Override
2015-01-06 17:14:16 +01:00
public ITx getSource() {
2015-01-01 23:17:32 +01:00
return source;
}
@Override
2015-01-06 17:14:16 +01:00
public ITx getTarget() {
2015-01-01 23:17:32 +01:00
return target;
}
}