public class World extends StandardEntity
Constructor and Description |
---|
World(EntityID id)
Construct a World object with entirely undefined property values.
|
World(World other)
World copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Entity |
copyImpl()
Create a copy of this entity.
|
int |
getLatitude()
Get the value of the latitude property.
|
IntProperty |
getLatitudeProperty()
Get the latitude property.
|
int |
getLongitude()
Get the value of the longitude property.
|
IntProperty |
getLongitudeProperty()
Get the longitude property.
|
Property |
getProperty(java.lang.String urn)
Get a property by urn.
|
StandardEntityURN |
getStandardURN()
Get the URN of this entity type as an instanceof StandardEntityURN.
|
int |
getStartTime()
Get the value of the startTime property.
|
IntProperty |
getStartTimeProperty()
Get the startTime property.
|
int |
getWindDirection()
Get the value of the windDirection property.
|
IntProperty |
getWindDirectionProperty()
Get the windDirection property.
|
int |
getWindForce()
Get the value of the windForce property.
|
IntProperty |
getWindForceProperty()
Get the windForce property.
|
boolean |
isLatitudeDefined()
Find out if the latitude property has been defined.
|
boolean |
isLongitudeDefined()
Find out if the longitude property has been defined.
|
boolean |
isStartTimeDefined()
Find out if the startTime property has been defined.
|
boolean |
isWindDirectionDefined()
Find out if the windDirection property has been defined.
|
boolean |
isWindForceDefined()
Find out if the windForce property has been defined.
|
void |
setLatitude(int latitude)
Set the latitude property.
|
void |
setLongitude(int longitude)
Set the longitude property.
|
void |
setStartTime(int startTime)
Set the startTime property.
|
void |
setWindDirection(int windDirection)
Set the windDirection property.
|
void |
setWindForce(int windForce)
Set the windForce property.
|
void |
undefineLatitude()
Undefine the latitude property.
|
void |
undefineLongitude()
Undefine the longitude property.
|
void |
undefineStartTime()
Undefine the startTime property.
|
void |
undefineWindDirection()
Undefine the windDirection property.
|
void |
undefineWindForce()
Undefine the windForce property.
|
getLocation, getURN
addEntityListener, copy, equals, firePropertyChanged, getEntityName, getFullDescription, getID, getProperties, hashCode, read, registerProperties, removeEntityListener, toString, write
public World(EntityID id)
id
- The ID of this entity.public World(World other)
other
- The World to copy.protected Entity copyImpl()
AbstractEntity
copyImpl
in class AbstractEntity
public StandardEntityURN getStandardURN()
StandardEntity
getStandardURN
in class StandardEntity
public Property getProperty(java.lang.String urn)
Entity
getProperty
in interface Entity
getProperty
in class AbstractEntity
urn
- The urn to look up.public IntProperty getStartTimeProperty()
public int getStartTime()
public void setStartTime(int startTime)
startTime
- The new startTime.public boolean isStartTimeDefined()
public void undefineStartTime()
public IntProperty getLatitudeProperty()
public int getLatitude()
public void setLatitude(int latitude)
latitude
- The new latitude.public boolean isLatitudeDefined()
public void undefineLatitude()
public IntProperty getLongitudeProperty()
public int getLongitude()
public void setLongitude(int longitude)
longitude
- The new longitude.public boolean isLongitudeDefined()
public void undefineLongitude()
public IntProperty getWindForceProperty()
public int getWindForce()
public void setWindForce(int windForce)
windForce
- The new windForce.public boolean isWindForceDefined()
public void undefineWindForce()
public IntProperty getWindDirectionProperty()
public int getWindDirection()
public void setWindDirection(int windDirection)
windDirection
- The new windDirection.public boolean isWindDirectionDefined()
public void undefineWindDirection()