2021-01-09 12:43:02 +01:00
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (c) 2020 MINRES Technologies GmbH and others.
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* MINRES Technologies GmbH - initial API and implementation
|
|
|
|
*******************************************************************************/
|
2021-01-03 14:16:56 +01:00
|
|
|
package com.minres.scviewer.database.text;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
import com.minres.scviewer.database.RelationType;
|
|
|
|
|
2021-01-09 12:43:02 +01:00
|
|
|
/**
|
|
|
|
* The Class ScvRelation.
|
|
|
|
*/
|
2021-01-03 14:16:56 +01:00
|
|
|
class ScvRelation implements Serializable {
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/** The Constant serialVersionUID. */
|
2021-01-03 14:16:56 +01:00
|
|
|
private static final long serialVersionUID = -347668857680574140L;
|
|
|
|
|
2021-01-09 12:43:02 +01:00
|
|
|
/** The source. */
|
2021-01-03 14:16:56 +01:00
|
|
|
final long source;
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/** The target. */
|
2021-01-03 14:16:56 +01:00
|
|
|
final long target;
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/** The relation type. */
|
2021-01-03 14:16:56 +01:00
|
|
|
final RelationType relationType;
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new scv relation.
|
|
|
|
*
|
|
|
|
* @param relationType the relation type
|
|
|
|
* @param source the source
|
|
|
|
* @param target the target
|
|
|
|
*/
|
2021-01-03 14:16:56 +01:00
|
|
|
public ScvRelation(RelationType relationType, long source, long target) {
|
|
|
|
this.source = source;
|
|
|
|
this.target = target;
|
|
|
|
this.relationType = relationType;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|