Class SingleBox

java.lang.Object
  extended by SingleBox

public class SingleBox
extends java.lang.Object

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

APPEAR

public static final int APPEAR
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

DISAPPEAR

public static final int DISAPPEAR
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

OCCLUDED

public static final int OCCLUDED
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

WALK

public static final int WALK
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

RUN

public static final int RUN
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

ACTIVE

public static final int ACTIVE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

INACTIVE

public static final int INACTIVE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

FIGHTER

public static final int FIGHTER
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

BROWSER

public static final int BROWSER
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

LEFT_VICTIM

public static final int LEFT_VICTIM
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

LEAVING_GROUP

public static final int LEAVING_GROUP
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

WALKER

public static final int WALKER
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

LEFT_OBJECT

public static final int LEFT_OBJECT
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

MOVING_SIT

public static final int MOVING_SIT
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

INACTIVE_SIT

public static final int INACTIVE_SIT
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

BROWSING_SIT

public static final int BROWSING_SIT
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

SHOPENTER_SIT

public static final int SHOPENTER_SIT
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

SHOPEXIT_SIT

public static final int SHOPEXIT_SIT
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

BROWSING

public static final int BROWSING
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

IMMOBILE

public static final int IMMOBILE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

WALKING

public static final int WALKING
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

DROP_DOWN

public static final int DROP_DOWN
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

WINDOWSHOP_SCE

public static final int WINDOWSHOP_SCE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

SHOPENTER_SCE

public static final int SHOPENTER_SCE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

SHOPEXIT_SCE

public static final int SHOPEXIT_SCE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

SHOPREENTER_SCE

public static final int SHOPREENTER_SCE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

PERSON_IMMOBILE

public static final int PERSON_IMMOBILE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

NONE_ROLE

public static final int NONE_ROLE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

NONE_SIT

public static final int NONE_SIT
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

NONE_SCE

public static final int NONE_SCE
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

NONE_MOV

public static final int NONE_MOV
Parameters used to define where about the truths of that name appear in the truths array.

See Also:
Constant Field Values

text

public 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


roles

public static int[] roles

scenarios

public static int[] scenarios

situations

public static int[] situations

movements

public static int[] movements

LENGTH

public static final int LENGTH
field for length of ground truths array.

See Also:
Constant Field Values

MOVEMENT_LENGTH

public static final int MOVEMENT_LENGTH
See Also:
Constant Field Values

ROLE_LENGTH

public static final int ROLE_LENGTH
See Also:
Constant Field Values

SIT_LENGTH

public static final int SIT_LENGTH
See Also:
Constant Field Values

SCE_LENGTH

public static final int SCE_LENGTH
See Also:
Constant Field Values

truths

public boolean[] truths
Truths array for this SingleBox object.

Constructor Detail

SingleBox

public SingleBox()
Default constructor.


SingleBox

public SingleBox(boolean[] truths,
                 java.awt.Rectangle box,
                 int axis,
                 java.awt.geom.Line2D.Float axisLine,
                 Body body)
Constructor specifying all relavent parameters.

Method Detail

isDefault

public boolean isDefault()
Checks if the singlebox has the default values in all the fields.


CheckRoles

public java.lang.String CheckRoles()

CheckSituations

public java.lang.String CheckSituations()

CheckScenarios

public java.lang.String CheckScenarios()

setRol

public void setRol(java.lang.String rol)

setSituation

public void setSituation(java.lang.String sit)

setScenario

public void setScenario(java.lang.String sce)

getBody

public Body getBody()
Returns:
Returns the body.

setBody

public void setBody(Body body)
Parameters:
body - The body to set.

isBodyEmpty

public boolean isBodyEmpty()

getAppear

public boolean getAppear()
Get method for GUI to get value of appear value in truths array.


getDisappear

public boolean getDisappear()
Get method for GUI to get value of disappear value in truths array.


getOccluded

public boolean getOccluded()

getWalk

public boolean getWalk()
Get method for GUI to get value of walk value in truths array.


getRun

public boolean getRun()
Get method for GUI to get value of run value in truths array.


getActive

public boolean getActive()
Get method for GUI to get value of active value in truths array.


getInActive

public boolean getInActive()
Get method for GUI to get value of inactive value in truths array.


getNoneRol

public boolean getNoneRol()
Get method for GUI to get value of none rol value in truths array.


getNoneSit

public boolean getNoneSit()
Get method for GUI to get value of none sit value in truths array.


getNoneSce

public boolean getNoneSce()
Get method for GUI to get value of none sce value in truths array.


getNoneMov

public boolean getNoneMov()
Get method for GUI to get value of none sce value in truths array.


getFighter

public boolean getFighter()
Get method for GUI to get value of fighter value in truths array.


getBrowser

public boolean getBrowser()
Get method for GUI to get value of browser value in truths array.


getLeftBehind

public boolean getLeftBehind()
Get method for GUI to get value of left behind value in truths array.


getLeavingGroup

public boolean getLeavingGroup()
Get method for GUI to get value of leaving group value in truths array.


getWalker

public boolean getWalker()
Get method for GUI to get value of walker value in truths array.


getLeftObject

public boolean getLeftObject()
Get method for GUI to get value of left object value in truths array.


getMovingSit

public boolean getMovingSit()
Get method for GUI to get value of moving situation value in truths array.


getShopenterSit

public boolean getShopenterSit()
Get method for GUI to get value of shop enter situation value in truths array.


getShopexitSit

public boolean getShopexitSit()
Get method for GUI to get value of shop exit situation value in truths array.


getWindowshopSce

public boolean getWindowshopSce()
Get method for GUI to get value of window shop scenario value in truths array.


getShopenterSce

public boolean getShopenterSce()
Get method for GUI to get value of shop enter scenario value in truths array.


getShopexitSce

public boolean getShopexitSce()
Get method for GUI to get value of shop exit scenario value in truths array.


getShopreenterSce

public boolean getShopreenterSce()
Get method for GUI to get value of shop reenter scenario value in truths array.


getInactiveSit

public boolean getInactiveSit()
Get method for GUI to get value of inactive situation value in truths array.


getBrowsingSit

public boolean getBrowsingSit()
Get method for GUI to get value of browsing situation value in truths array.


getBrowsing

public boolean getBrowsing()
Get method for GUI to get value of browsing value in truths array.


getImmobile

public boolean getImmobile()
Get method for GUI to get value of immobile value in truths array.


getWalking

public boolean getWalking()
Get method for GUI to get value of immobile value in truths array.


getDropDown

public boolean getDropDown()
Get method for GUI to get value of immobile value in truths array.


getPersonImmobile

public boolean getPersonImmobile()
Get method for GUI to get value of immobile value in truths array.


getBoxDrawn

public boolean getBoxDrawn()
Get method for GUI to get whether a box has been drawn asscociated with this SingleBox object.


getSelected

public boolean getSelected()
Get method for GUI to get whether a this SingleBox object. has been selected by the user.


getBox

public java.awt.Rectangle getBox()
get method for the GUI to return the Rectangle object associated with this SingleBox object.


getAxis

public int getAxis()
Returns the axis of orientation assciated with this SingleBox object.


getLine

public 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.


getTruths

public boolean[] getTruths()
Returns all the truths asscoiated with this SingleBox object.


setAppear

public void setAppear()
Toggles the value of the appear attribute of this SingleBox object.


setDisappear

public void setDisappear()
Toggles the value of the disappear attribute of this SingleBox object.


setOccluded

public void setOccluded()

setWalk

public void setWalk()
Toggles the value of the walk attribute of this SingleBox object.


setRun

public void setRun()
Toggles the value of the run attribute of this SingleBox object.


setActive

public void setActive()
Toggles the value of the active attribute of this SingleBox object.


setInActive

public void setInActive()
Toggles the value of the inactive attribute of this SingleBox object.


setNoneMov

public void setNoneMov()
Toggles the value of the none movement attribute of this SingleBox object.


setNoneRol

public void setNoneRol()
Toggles the value of the fighter attribute of this SingleBox object.


setFighter

public void setFighter()
Toggles the value of the fighter attribute of this SingleBox object.


setBrowser

public void setBrowser()
Toggles the value of the browser attribute of this SingleBox object.


setLeftBehind

public void setLeftBehind()
Toggles the value of the left behind attribute of this SingleBox object.


setLeavingGroup

public void setLeavingGroup()
Toggles the value of the leaving group attribute of this SingleBox object.


setWalker

public void setWalker()
Toggles the value of the walker attribute of this SingleBox object.


setLeftObject

public void setLeftObject()
Toggles the value of the left object attribute of this SingleBox object.


setNoneSit

public void setNoneSit()
Toggles the value of the none situation attribute of this SingleBox object.


setMovingSit

public void setMovingSit()
Toggles the value of the moving situation attribute of this SingleBox object.


setShopenterSit

public void setShopenterSit()
Toggles the value of the shop enter situation attribute of this SingleBox object.


setShopexitSit

public void setShopexitSit()
Toggles the value of the shop exit situation attribute of this SingleBox object.


setWindowshopSce

public void setWindowshopSce()
Toggles the value of the window shop scenario attribute of this SingleBox object.


setShopenterSce

public void setShopenterSce()
Toggles the value of the shop enter scenario attribute of this SingleBox object.


setShopexitSce

public void setShopexitSce()
Toggles the value of the shop exit scenario attribute of this SingleBox object.


setShopreenterSce

public void setShopreenterSce()
Toggles the value of the shop reenter scenario attribute of this SingleBox object.


setInactiveSit

public void setInactiveSit()
Toggles the value of the inactive attribute of this SingleBox object.


setBrowsingSit

public void setBrowsingSit()
Toggles the value of the browsing situation attribute of this SingleBox object.


setNoneSce

public void setNoneSce()
Toggles the value of the none scenario attribute of this SingleBox object.


setBrowsing

public void setBrowsing()
Toggles the value of the browsing attribute of this SingleBox object.


setImmobile

public void setImmobile()
Toggles the value of the immobile attribute of this SingleBox object.


setWalking

public void setWalking()
Toggles the value of the immobile attribute of this SingleBox object.


setDropDown

public void setDropDown()
Toggles the value of the drop down attribute of this SingleBox object.


setPersonImmobile

public void setPersonImmobile()
Toggles the value of the person immobile attribute of this SingleBox object.


setBoxDrawn

public void setBoxDrawn(boolean value)
Sets the value of the boxDrawn attribute of this SingleBox object to value.


setSelected

public void setSelected(boolean value)
Sets the value of the selected attribute of this SingleBox object to value.


setBox

public void setBox(java.awt.Rectangle rectangle)
Sets the value of the box attribute of this SingleBox object to rectangle.


setAxis

public void setAxis(int angle)
Sets the value of the axis attribute of this SingleBox object to angle.


setLine

public void setLine(java.awt.geom.Line2D.Float axisLine)
Sets the value of the axisLine attribute of this SingleBox object to axisLine.


setTruths

public 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


toString

public java.lang.String toString()
Returns the String representing this SingleBox object.

Overrides:
toString in class java.lang.Object