|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSingleBox
public class SingleBox
Class for representing a single person box.
Field Summary | |
---|---|
static int |
ACTIVE
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
APPEAR
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
BROWSER
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
BROWSING
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
BROWSING_SIT
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
DISAPPEAR
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
DROP_DOWN
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
FIGHTER
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
IMMOBILE
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
INACTIVE
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
INACTIVE_SIT
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
LEAVING_GROUP
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
LEFT_OBJECT
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
LEFT_VICTIM
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
LENGTH
field for length of ground truths array. |
static int |
MOVEMENT_LENGTH
|
static int[] |
movements
|
static int |
MOVING_SIT
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
NONE_MOV
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
NONE_ROLE
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
NONE_SCE
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
NONE_SIT
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
OCCLUDED
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
PERSON_IMMOBILE
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
ROLE_LENGTH
|
static int[] |
roles
|
static int |
RUN
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
SCE_LENGTH
|
static int[] |
scenarios
|
static int |
SHOPENTER_SCE
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
SHOPENTER_SIT
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
SHOPEXIT_SCE
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
SHOPEXIT_SIT
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
SHOPREENTER_SCE
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
SIT_LENGTH
|
static int[] |
situations
|
static java.lang.String[] |
text
This is used for mapping, and if not kept up to date when adding to the above will cause the ChangeBoxSequence program to function incorrectly |
boolean[] |
truths
Truths array for this SingleBox object. |
static int |
WALK
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
WALKER
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
WALKING
Parameters used to define where about the truths of that name appear in the truths array. |
static int |
WINDOWSHOP_SCE
Parameters used to define where about the truths of that name appear in the truths array. |
Constructor Summary | |
---|---|
SingleBox()
Default constructor. |
|
SingleBox(boolean[] truths,
java.awt.Rectangle box,
int axis,
java.awt.geom.Line2D.Float axisLine,
Body body)
Constructor specifying all relavent parameters. |
Method Summary | |
---|---|
java.lang.String |
CheckRoles()
|
java.lang.String |
CheckScenarios()
|
java.lang.String |
CheckSituations()
|
boolean |
getActive()
Get method for GUI to get value of active value in truths array. |
boolean |
getAppear()
Get method for GUI to get value of appear value in truths array. |
int |
getAxis()
Returns the axis of orientation assciated with this SingleBox object. |
Body |
getBody()
|
java.awt.Rectangle |
getBox()
get method for the GUI to return the Rectangle object associated with this SingleBox object. |
boolean |
getBoxDrawn()
Get method for GUI to get whether a box has been drawn asscociated with this SingleBox object. |
boolean |
getBrowser()
Get method for GUI to get value of browser value in truths array. |
boolean |
getBrowsing()
Get method for GUI to get value of browsing value in truths array. |
boolean |
getBrowsingSit()
Get method for GUI to get value of browsing situation value in truths array. |
boolean |
getDisappear()
Get method for GUI to get value of disappear value in truths array. |
boolean |
getDropDown()
Get method for GUI to get value of immobile value in truths array. |
boolean |
getFighter()
Get method for GUI to get value of fighter value in truths array. |
boolean |
getImmobile()
Get method for GUI to get value of immobile value in truths array. |
boolean |
getInActive()
Get method for GUI to get value of inactive value in truths array. |
boolean |
getInactiveSit()
Get method for GUI to get value of inactive situation value in truths array. |
boolean |
getLeavingGroup()
Get method for GUI to get value of leaving group value in truths array. |
boolean |
getLeftBehind()
Get method for GUI to get value of left behind value in truths array. |
boolean |
getLeftObject()
Get method for GUI to get value of left object value in truths array. |
java.awt.geom.Line2D.Float |
getLine()
Returns the line of the orientation worked out from the Rectangle object and the axis parameter if this SingleBox object. |
boolean |
getMovingSit()
Get method for GUI to get value of moving situation value in truths array. |
boolean |
getNoneMov()
Get method for GUI to get value of none sce value in truths array. |
boolean |
getNoneRol()
Get method for GUI to get value of none rol value in truths array. |
boolean |
getNoneSce()
Get method for GUI to get value of none sce value in truths array. |
boolean |
getNoneSit()
Get method for GUI to get value of none sit value in truths array. |
boolean |
getOccluded()
|
boolean |
getPersonImmobile()
Get method for GUI to get value of immobile value in truths array. |
boolean |
getRun()
Get method for GUI to get value of run value in truths array. |
boolean |
getSelected()
Get method for GUI to get whether a this SingleBox object. |
boolean |
getShopenterSce()
Get method for GUI to get value of shop enter scenario value in truths array. |
boolean |
getShopenterSit()
Get method for GUI to get value of shop enter situation value in truths array. |
boolean |
getShopexitSce()
Get method for GUI to get value of shop exit scenario value in truths array. |
boolean |
getShopexitSit()
Get method for GUI to get value of shop exit situation value in truths array. |
boolean |
getShopreenterSce()
Get method for GUI to get value of shop reenter scenario value in truths array. |
boolean[] |
getTruths()
Returns all the truths asscoiated with this SingleBox object. |
boolean |
getWalk()
Get method for GUI to get value of walk value in truths array. |
boolean |
getWalker()
Get method for GUI to get value of walker value in truths array. |
boolean |
getWalking()
Get method for GUI to get value of immobile value in truths array. |
boolean |
getWindowshopSce()
Get method for GUI to get value of window shop scenario value in truths array. |
boolean |
isBodyEmpty()
|
boolean |
isDefault()
Checks if the singlebox has the default values in all the fields. |
void |
setActive()
Toggles the value of the active attribute of this SingleBox object. |
void |
setAppear()
Toggles the value of the appear attribute of this SingleBox object. |
void |
setAxis(int angle)
Sets the value of the axis attribute of this SingleBox object to angle. |
void |
setBody(Body body)
|
void |
setBox(java.awt.Rectangle rectangle)
Sets the value of the box attribute of this SingleBox object to rectangle. |
void |
setBoxDrawn(boolean value)
Sets the value of the boxDrawn attribute of this SingleBox object to value. |
void |
setBrowser()
Toggles the value of the browser attribute of this SingleBox object. |
void |
setBrowsing()
Toggles the value of the browsing attribute of this SingleBox object. |
void |
setBrowsingSit()
Toggles the value of the browsing situation attribute of this SingleBox object. |
void |
setDisappear()
Toggles the value of the disappear attribute of this SingleBox object. |
void |
setDropDown()
Toggles the value of the drop down attribute of this SingleBox object. |
void |
setFighter()
Toggles the value of the fighter attribute of this SingleBox object. |
void |
setImmobile()
Toggles the value of the immobile attribute of this SingleBox object. |
void |
setInActive()
Toggles the value of the inactive attribute of this SingleBox object. |
void |
setInactiveSit()
Toggles the value of the inactive attribute of this SingleBox object. |
void |
setLeavingGroup()
Toggles the value of the leaving group attribute of this SingleBox object. |
void |
setLeftBehind()
Toggles the value of the left behind attribute of this SingleBox object. |
void |
setLeftObject()
Toggles the value of the left object attribute of this SingleBox object. |
void |
setLine(java.awt.geom.Line2D.Float axisLine)
Sets the value of the axisLine attribute of this SingleBox object to axisLine. |
void |
setMovingSit()
Toggles the value of the moving situation attribute of this SingleBox object. |
void |
setNoneMov()
Toggles the value of the none movement attribute of this SingleBox object. |
void |
setNoneRol()
Toggles the value of the fighter attribute of this SingleBox object. |
void |
setNoneSce()
Toggles the value of the none scenario attribute of this SingleBox object. |
void |
setNoneSit()
Toggles the value of the none situation attribute of this SingleBox object. |
void |
setOccluded()
|
void |
setPersonImmobile()
Toggles the value of the person immobile attribute of this SingleBox object. |
void |
setRol(java.lang.String rol)
|
void |
setRun()
Toggles the value of the run attribute of this SingleBox object. |
void |
setScenario(java.lang.String sce)
|
void |
setSelected(boolean value)
Sets the value of the selected attribute of this SingleBox object to value. |
void |
setShopenterSce()
Toggles the value of the shop enter scenario attribute of this SingleBox object. |
void |
setShopenterSit()
Toggles the value of the shop enter situation attribute of this SingleBox object. |
void |
setShopexitSce()
Toggles the value of the shop exit scenario attribute of this SingleBox object. |
void |
setShopexitSit()
Toggles the value of the shop exit situation attribute of this SingleBox object. |
void |
setShopreenterSce()
Toggles the value of the shop reenter scenario attribute of this SingleBox object. |
void |
setSituation(java.lang.String sit)
|
void |
setTruths(boolean[] newTruths)
Sets the value of the all the values in the truths array of this SingleBox object to the value of newTruths |
void |
setWalk()
Toggles the value of the walk attribute of this SingleBox object. |
void |
setWalker()
Toggles the value of the walker attribute of this SingleBox object. |
void |
setWalking()
Toggles the value of the immobile attribute of this SingleBox object. |
void |
setWindowshopSce()
Toggles the value of the window shop scenario attribute of this SingleBox object. |
java.lang.String |
toString()
Returns the String representing this SingleBox object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int APPEAR
public static final int DISAPPEAR
public static final int OCCLUDED
public static final int WALK
public static final int RUN
public static final int ACTIVE
public static final int INACTIVE
public static final int FIGHTER
public static final int BROWSER
public static final int LEFT_VICTIM
public static final int LEAVING_GROUP
public static final int WALKER
public static final int LEFT_OBJECT
public static final int MOVING_SIT
public static final int INACTIVE_SIT
public static final int BROWSING_SIT
public static final int SHOPENTER_SIT
public static final int SHOPEXIT_SIT
public static final int BROWSING
public static final int IMMOBILE
public static final int WALKING
public static final int DROP_DOWN
public static final int WINDOWSHOP_SCE
public static final int SHOPENTER_SCE
public static final int SHOPEXIT_SCE
public static final int SHOPREENTER_SCE
public static final int PERSON_IMMOBILE
public static final int NONE_ROLE
public static final int NONE_SIT
public static final int NONE_SCE
public static final int NONE_MOV
public static java.lang.String[] text
public static int[] roles
public static int[] scenarios
public static int[] situations
public static int[] movements
public static final int LENGTH
public static final int MOVEMENT_LENGTH
public static final int ROLE_LENGTH
public static final int SIT_LENGTH
public static final int SCE_LENGTH
public boolean[] truths
Constructor Detail |
---|
public SingleBox()
public SingleBox(boolean[] truths, java.awt.Rectangle box, int axis, java.awt.geom.Line2D.Float axisLine, Body body)
Method Detail |
---|
public boolean isDefault()
public java.lang.String CheckRoles()
public java.lang.String CheckSituations()
public java.lang.String CheckScenarios()
public void setRol(java.lang.String rol)
public void setSituation(java.lang.String sit)
public void setScenario(java.lang.String sce)
public Body getBody()
public void setBody(Body body)
body
- The body to set.public boolean isBodyEmpty()
public boolean getAppear()
public boolean getDisappear()
public boolean getOccluded()
public boolean getWalk()
public boolean getRun()
public boolean getActive()
public boolean getInActive()
public boolean getNoneRol()
public boolean getNoneSit()
public boolean getNoneSce()
public boolean getNoneMov()
public boolean getFighter()
public boolean getBrowser()
public boolean getLeftBehind()
public boolean getLeavingGroup()
public boolean getWalker()
public boolean getLeftObject()
public boolean getMovingSit()
public boolean getShopenterSit()
public boolean getShopexitSit()
public boolean getWindowshopSce()
public boolean getShopenterSce()
public boolean getShopexitSce()
public boolean getShopreenterSce()
public boolean getInactiveSit()
public boolean getBrowsingSit()
public boolean getBrowsing()
public boolean getImmobile()
public boolean getWalking()
public boolean getDropDown()
public boolean getPersonImmobile()
public boolean getBoxDrawn()
public boolean getSelected()
public java.awt.Rectangle getBox()
public int getAxis()
public java.awt.geom.Line2D.Float getLine()
public boolean[] getTruths()
public void setAppear()
public void setDisappear()
public void setOccluded()
public void setWalk()
public void setRun()
public void setActive()
public void setInActive()
public void setNoneMov()
public void setNoneRol()
public void setFighter()
public void setBrowser()
public void setLeftBehind()
public void setLeavingGroup()
public void setWalker()
public void setLeftObject()
public void setNoneSit()
public void setMovingSit()
public void setShopenterSit()
public void setShopexitSit()
public void setWindowshopSce()
public void setShopenterSce()
public void setShopexitSce()
public void setShopreenterSce()
public void setInactiveSit()
public void setBrowsingSit()
public void setNoneSce()
public void setBrowsing()
public void setImmobile()
public void setWalking()
public void setDropDown()
public void setPersonImmobile()
public void setBoxDrawn(boolean value)
public void setSelected(boolean value)
public void setBox(java.awt.Rectangle rectangle)
public void setAxis(int angle)
public void setLine(java.awt.geom.Line2D.Float axisLine)
public void setTruths(boolean[] newTruths)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |