1 package edu.berkeley.fleet.interpreter;
2 import edu.berkeley.fleet.api.*;
6 private final InterpreterPath path;
7 private final BitVector value;
8 private final boolean isToken;
10 public Packet(InterpreterPath path, BitVector value, boolean isToken) {
13 this.isToken = isToken;
14 this.value.setImmutable();
19 Log.token(path.getSource(), path.getDestination());
21 Log.data(value+"", path.getSource(), path.getDestination());
23 ((InterpreterDestination)path.getDestination()).addDataFromFabric(this);
26 public Destination getDestination() {
27 return path.getDestination();
30 public BitVector getSignal() {
31 return path.getSignal();
34 public BitVector getValue() {
38 public boolean isToken() {