2021-01-03 14:16:56 +01:00
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (c) 2012 IT Just working.
|
2021-01-09 12:43:02 +01:00
|
|
|
* Copyright (c) 2020 MINRES Technologies GmbH
|
2021-01-03 14:16:56 +01:00
|
|
|
* 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:
|
|
|
|
* IT Just working - initial API and implementation
|
|
|
|
*******************************************************************************/
|
|
|
|
package com.minres.scviewer.database.text;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import com.minres.scviewer.database.tx.ITxAttribute;
|
|
|
|
|
2021-01-09 12:43:02 +01:00
|
|
|
/**
|
|
|
|
* The Class ScvTx.
|
|
|
|
*/
|
|
|
|
class ScvTx implements Serializable {
|
|
|
|
|
|
|
|
/** The Constant serialVersionUID. */
|
2021-01-03 14:16:56 +01:00
|
|
|
private static final long serialVersionUID = -855200240003328221L;
|
|
|
|
|
2021-01-09 12:43:02 +01:00
|
|
|
/** The id. */
|
2021-01-03 14:16:56 +01:00
|
|
|
final long id;
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/** The generator id. */
|
2021-01-03 14:16:56 +01:00
|
|
|
final long generatorId;
|
|
|
|
|
2021-01-09 12:43:02 +01:00
|
|
|
/** The stream id. */
|
2021-01-03 14:16:56 +01:00
|
|
|
final long streamId;
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/** The begin time. */
|
2021-01-03 14:16:56 +01:00
|
|
|
long beginTime;
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/** The end time. */
|
2021-01-03 14:16:56 +01:00
|
|
|
long endTime;
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/** The attributes. */
|
2021-01-03 14:16:56 +01:00
|
|
|
final List<ITxAttribute> attributes = new ArrayList<>();
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new scv tx.
|
|
|
|
*
|
|
|
|
* @param id the id
|
|
|
|
* @param streamId the stream id
|
|
|
|
* @param generatorId the generator id
|
|
|
|
* @param begin the begin
|
|
|
|
*/
|
|
|
|
ScvTx(long id, long streamId, long generatorId, long begin) {
|
|
|
|
this.id = id;
|
|
|
|
this.streamId = streamId;
|
|
|
|
this.generatorId = generatorId;
|
|
|
|
this.beginTime = begin;
|
|
|
|
this.endTime = begin;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the id.
|
|
|
|
*
|
|
|
|
* @return the id
|
|
|
|
*/
|
|
|
|
Long getId() {
|
|
|
|
return id;
|
2021-01-03 14:16:56 +01:00
|
|
|
}
|
|
|
|
}
|