2 package org.smallfoot.wwn;
4 import java.math.BigInteger;
46 else if (wwn.matches(
"50001442.*"))
61 String res = super.toString();
62 if (null == res) res =
"";
65 BigInteger serDirPort =
wwn.subtract(
wwn.shiftRight(32).shiftLeft(32));
70 BigInteger numSeedIOPort[] = serDirPort.divideAndRemainder(
new BigInteger(
"10000000",16));
74 director += (numSeedIOPort[0].intValue() % 2);
76 BigInteger seedIOPort[] = numSeedIOPort[1].divideAndRemainder(
new BigInteger(
"100",16));
80 switch (seedIOPort[1].intValue() / 16)
100 return res + String.format(
"%05x-E%c-%s%d%d",seedIOPort[0].intValue(),director,front,seedIOPort[1].intValue() / 16, seedIOPort[1].intValue() % 16);
103 return res + String.format(
"%05x-%c%d-FC0%d",seedIOPort[0].intValue(),director,seedIOPort[1].intValue() / 16, seedIOPort[1].intValue() % 16);