| | |
| | | * |
| | | * @author Ulysses |
| | | * @version 0.1 |
| | | * @since 2006/5/18 ¤U¤È 06:36:55 |
| | | * @since 2006/5/18 |
| | | */ |
| | | public class FrammeAttributeData extends UserAttributeData |
| | | { |
| | | public FrammeAttributeData(short id) |
| | | { |
| | | public class FrammeAttributeData extends UserAttributeData { |
| | | public FrammeAttributeData(short id) { |
| | | super(id, 7); |
| | | } |
| | | |
| | | public FrammeAttributeData(short[] src) |
| | | { |
| | | public FrammeAttributeData(short[] src) { |
| | | super(src); |
| | | } |
| | | |
| | | public short getFsc() |
| | | { |
| | | public short getFsc() { |
| | | int fsc = _src[3] & 0x0000ffff; |
| | | |
| | | return (short) fsc; |
| | | } |
| | | |
| | | public int getUfid() |
| | | { |
| | | public int getUfid() { |
| | | int ufid = (int) (_src[2] << 16 & 0xffff0000); |
| | | |
| | | ufid += _src[1] & 0x0000ffff; |
| | |
| | | return ufid; |
| | | } |
| | | |
| | | public byte getComponentID() |
| | | { |
| | | public byte getComponentID() { |
| | | int cmpid = (int) (_src[5] & 0x000000ff); |
| | | |
| | | return (byte) cmpid; |
| | | } |
| | | |
| | | public byte getRuleNo() |
| | | { |
| | | public byte getRuleNo() { |
| | | int no = (int) ((_src[5] >> 8) & 0x000000ff); |
| | | |
| | | return (byte) no; |
| | | } |
| | | |
| | | public short getStatus() |
| | | { |
| | | public short getStatus() { |
| | | int status = (int) (_src[4] & 0x0000ffff); |
| | | |
| | | return (short) status; |
| | | } |
| | | |
| | | public short getOccID() |
| | | { |
| | | public short getOccID() { |
| | | int occid = (int) (_src[6] & 0x0000ffff); |
| | | |
| | | return (short) occid; |
| | | } |
| | | |
| | | public String toString() |
| | | { |
| | | public String toString() { |
| | | return "FrammeData{" + getFsc() + "," + getUfid() + "," + getComponentID() + "," + getRuleNo() + "," + getStatus() + "," |
| | | + getOccID() + "}"; |
| | | + getOccID() + "}"; |
| | | } |
| | | } |