SCViewer/com.minres.scviewer.databas.../src/com/minres/scviewer/database/vcd/VCDSignalChangeMulti.java

44 lines
1.2 KiB
Java
Raw Normal View History

/*******************************************************************************
* Copyright (c) 2014, 2015 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
*******************************************************************************/
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;
2015-01-06 17:14:16 +01:00
import com.minres.scviewer.database.ISignalChangeMulti;
import com.minres.scviewer.database.SignalChange;
public class VCDSignalChangeMulti extends SignalChange implements ISignalChangeMulti, Cloneable {
2015-01-09 09:16:40 +01:00
private BitVector value;
2015-01-06 17:14:16 +01:00
2015-01-20 18:50:15 +01:00
public VCDSignalChangeMulti(Long time) {
2015-01-06 17:14:16 +01:00
super(time);
}
2015-01-20 18:50:15 +01:00
public VCDSignalChangeMulti(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;
}
@Override
public String toString() {
return value.toHexString()+"@"+getTime();
}
2015-01-06 17:14:16 +01:00
}