1 package com.inzyme.jmds; 2 3 8 public class DSOutputCrossBarPin extends DSAbstractCrossBarPin { 9 private int myRoutedToIndex; 10 11 20 public DSOutputCrossBarPin(DSCrossBar _crossBar, int _pinIndex, int _pinIndexRelated, int _physicalType, int _routedToIndex) { 21 super(_crossBar, _pinIndex, _pinIndexRelated, _physicalType); 22 myRoutedToIndex = _routedToIndex; 23 } 24 25 int getRoutedToIndex() { 26 return myRoutedToIndex; 27 } 28 29 void setRoutedToIndex(int _routedToIndex) { 30 myRoutedToIndex = _routedToIndex; 31 } 32 33 38 public void routeTo(DSInputCrossBarPin _inputPin) { 39 getCrossBar().route(this, _inputPin); 40 } 41 42 47 public DSInputCrossBarPin getRoutedToPin() { 48 return getCrossBar().getInputPinAt(myRoutedToIndex); 49 } 50 51 public String toString() { 52 return "[DSOutputCrossBarPin: physicalType = " + getPhysicalTypeName() + " (" + getPhysicalType() + "); pinIndex = " + getPinIndex() + "; pinIndexRelated = " + getPinIndexRelated() + "; routedToIndex = " + myRoutedToIndex + "]"; 53 } 54 } 55 | Popular Tags |