2015-01-21 21:58:35 +01:00
|
|
|
/*******************************************************************************
|
2015-10-22 00:25:12 +02:00
|
|
|
* Copyright (c) 2015 MINRES Technologies GmbH and others.
|
2015-01-21 21:58:35 +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:
|
|
|
|
* MINRES Technologies GmbH - initial API and implementation
|
|
|
|
*******************************************************************************/
|
2015-01-06 17:14:16 +01:00
|
|
|
package com.minres.scviewer.database.vcd;
|
|
|
|
|
2015-01-09 09:16:40 +01:00
|
|
|
import com.minres.scviewer.database.BitVector;
|
2018-10-11 11:20:36 +02:00
|
|
|
import com.minres.scviewer.database.ISignalChangeBitVector;
|
2015-01-06 17:14:16 +01:00
|
|
|
import com.minres.scviewer.database.SignalChange;
|
|
|
|
|
2018-10-11 11:20:36 +02:00
|
|
|
public class VCDSignalChangeBitVector extends SignalChange implements ISignalChangeBitVector, Cloneable {
|
2015-01-06 17:14:16 +01:00
|
|
|
|
2015-01-09 09:16:40 +01:00
|
|
|
private BitVector value;
|
2015-01-06 17:14:16 +01:00
|
|
|
|
2018-10-11 11:20:36 +02:00
|
|
|
public VCDSignalChangeBitVector(Long time) {
|
2015-01-06 17:14:16 +01:00
|
|
|
super(time);
|
|
|
|
}
|
|
|
|
|
2018-10-11 11:20:36 +02:00
|
|
|
public VCDSignalChangeBitVector(Long time, BitVector decodedValues) {
|
2015-01-06 17:14:16 +01:00
|
|
|
super(time);
|
2015-01-09 09:16:40 +01:00
|
|
|
this.value=decodedValues;
|
2015-01-06 17:14:16 +01:00
|
|
|
}
|
|
|
|
|
2015-01-09 09:16:40 +01:00
|
|
|
public BitVector getValue() {
|
2015-01-06 17:14:16 +01:00
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
2015-01-09 09:16:40 +01:00
|
|
|
public void setValue(BitVector value) {
|
2015-01-06 17:14:16 +01:00
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
|
2015-01-21 21:58:35 +01:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return value.toHexString()+"@"+getTime();
|
|
|
|
}
|
|
|
|
|
2015-01-06 17:14:16 +01:00
|
|
|
}
|