public interface Person extends LocatedObject
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_WIDTH |
Modifier and Type | Method and Description |
---|---|
void |
addListener(PersonListener listener)
Adds a listener to the person.
|
String |
getLocation()
Gets the person logical location.
|
String |
getName()
Gets the person name.
|
PersonType |
getPersonType()
Gets the person type.
|
void |
removeListener(PersonListener listener)
Removes a listener from the person.
|
void |
setName(String name)
Sets the person name.
|
void |
setPersonType(PersonType personType)
Sets the person type.
|
attachObject, detachObject, getCenterAbsolutePosition, setCenterAbsolutePosition
static final int DEFAULT_WIDTH
static final int DEFAULT_HEIGHT
String getName()
void setName(String name)
name
- the person new name.PersonType getPersonType()
void setPersonType(PersonType personType)
personType
- the new person type.String getLocation()
void addListener(PersonListener listener)
listener
- the listener to be added.void removeListener(PersonListener listener)
listener
- the listener to be removed.Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.