示例#1
0
 /** Undefine the position property. */
 public void undefinePosition() {
   positionID.undefine();
 }
示例#2
0
 /**
  * Get the ID of position of this blockade.
  *
  * @return The position.
  */
 @Override
 public Road getPosition() {
   return position == null
       ? position = (Road) standardModel().getEntity(positionID.getValue())
       : position;
 }
示例#3
0
 /**
  * Find out if the position property has been defined.
  *
  * @return True if the position property has been defined, false otherwise.
  */
 public boolean isPositionDefined() {
   return positionID.isDefined();
 }
示例#4
0
 /**
  * Get the ID of position of this blockade.
  *
  * @return The position.
  */
 public EntityID getPositionID() {
   return positionID.getValue();
 }