|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nankin.zheng.gatem.model.AttributeSet
Role's logical attribute set, which is provided to RoleView object for drawing.
AttributeSet is a bean, which can be created and set by Role object, and be read by RoleView object.
AttributeSet is a commincation class.
Field Summary | |
private int |
action
|
private static int |
createdInstanceCount
|
private int |
direction
|
private Position |
position
|
private int |
status
|
Constructor Summary | |
AttributeSet()
Constructor. |
|
AttributeSet(Position pos,
int dir,
int act,
int sts)
Constructor. |
Method Summary | |
java.lang.Object |
clone()
Clone a copy. |
int |
getAction()
Get action. |
static int |
getCreatedInstanceCount()
|
int |
getDirection()
Get direction. |
Position |
getPosition()
Get position. |
int |
getStatus()
Get status. |
void |
movePosition(int dir)
Move position to a given direction. |
void |
plusAction()
Action plus plus. |
void |
setAction(int act)
Set action. |
void |
setDirection(int dir)
Set direction. |
void |
setPosition(Position pos)
Set position. |
void |
setStatus(int sts)
Set status. |
java.lang.String |
toString()
Convert to String |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static int createdInstanceCount
private int status
private int direction
private int action
private Position position
Constructor Detail |
public AttributeSet()
public AttributeSet(Position pos, int dir, int act, int sts)
pos
- position of the role (logical coordonate).dir
- direction of the role.act
- action of the role.sts
- status of the role.Method Detail |
public static int getCreatedInstanceCount()
public void setStatus(int sts)
sts
- statuspublic int getStatus()
public void setDirection(int dir)
dir
- directionpublic int getDirection()
public void setPosition(Position pos)
pos
- position
java.lang.NullPointerException
- if pos is null
(thrown from constructor of Position)public void movePosition(int dir)
dir
- directionpublic Position getPosition()
public void setAction(int act)
act
- actionpublic void plusAction()
public int getAction()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |