2 package org.smallfoot.wwn;
4 import java.math.BigInteger;
46 else if (wwn.matches(
"5006048.*"))
61 String res = super.toString();
62 if (null == res) res =
"";
65 BigInteger serDirPort =
wwn.subtract(
wwn.shiftRight(36).shiftLeft(36));
68 BigInteger sDirPort[] = serDirPort.divideAndRemainder(
new BigInteger(
"40",16));
69 BigInteger xDirPort[] = sDirPort[0].divideAndRemainder(
new BigInteger(
"20000000",16));
72 res += String.format(
"Symm-%04d",xDirPort[1].mod(
new BigInteger(
"10000",10)));
74 res +=
"Symm-"+xDirPort[1];
76 BigInteger DirPort[] = sDirPort[1].divideAndRemainder(
new BigInteger(
"10",16));
77 res += String.format(
"-%02d",DirPort[1].intValue()+1);
79 switch (4*xDirPort[0].intValue()+DirPort[0].intValue())