org.metaabm.gen.test
Class ComplexLocation

java.lang.Object
  extended by org.ascape.model.AscapeObject
      extended by org.ascape.model.Agent
          extended by org.ascape.model.LocatedAgent
              extended by org.ascape.model.Cell
                  extended by org.ascape.model.HostCell
                      extended by org.metaabm.gen.test.ComplexLocation
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.ascape.model.space.Location, org.ascape.model.space.Node, org.ascape.util.HasName, org.ascape.util.RandomFunctions, IComplexLocation

public class ComplexLocation
extends org.ascape.model.HostCell
implements IComplexLocation

Complex Location Java Implementation. Generated by metaabm system: Apr 20, 2008 1:42:30 PM MDT in project: org.metaabm.gen.ascape.test (testing)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ascape.model.HostCell
IS_AVAILABLE, IS_OCCUPIED, occupant
 
Fields inherited from class org.ascape.model.Cell
CALCULATE_NEIGHBORS_RULE, neighbors, PLAY_NEIGHBORS_RULE, PLAY_RANDOM_NEIGHBOR_RULE
 
Fields inherited from class org.ascape.model.LocatedAgent
agentSize, coordinate, MOVE_RANDOM_LOCATION_RULE, RANDOM_WALK_RULE, thisUpdate
 
Fields inherited from class org.ascape.model.Agent
DEATH_RULE, FISSIONING_RULE, FORCE_DIE_RULE, FORCE_FISSION_RULE, FORCE_MOVE_RULE, INITIALIZE_RULE, ITERATE_AND_UPDATE_RULE, ITERATE_RULE, METABOLISM_RULE, MOVEMENT_RULE, PLAY_OTHER, UPDATE_RULE
 
Fields inherited from class org.ascape.model.AscapeObject
ARBITRARY_SEED, name, scape
 
Constructor Summary
ComplexLocation()
          Constructs a new Complex Location.
 
Method Summary
 java.awt.Color getColor()
           
 java.util.List getNetwork()
           
static SpatialModel getSpatialModel()
          Gets the Spatial Model property for .
 boolean isLocationGood()
          Gets the Location Good property for Complex Location.
 void setLocationGood(boolean _locationGood)
          Sets the Location Good property for Complex Location.
static void setSpatialModel(SpatialModel _spatialModel)
          Sets the Spatial Model property for .
 void testAgentHere()
          .
 void testSelfAvailable()
          .
 void testSelfAvailableCreate()
          .
 void testSelfAvailableWithin()
          .
 void testSelfWithinBounds()
          .
 boolean withinBoundaries(double[] bounds)
          .
 
Methods inherited from class org.ascape.model.HostCell
clone, findAvailableNeighbors, findNearestOccupants, findNearestOccupants, findNearestOccupants, findNearestOccupants, findNearestOccupants, findNeighboringOccupants, findOccupantsWithin, findOccupantsWithin, findOccupantsWithin, findRandomAvailableNeighbor, getOccupant, isAvailable, isNeighborAvailable, removeOccupant, setNeighborsList, setOccupant
 
Methods inherited from class org.ascape.model.Cell
calculateNeighbors, countNeighbors, findNeighbors, findOccupants, findRandomNeighbor, findRelative, getDistance, getNeighbors, getNeighbors, hostedCondition, initialize, playNeighbors, playRandomNeighbor, setNeighbors, setNetwork, toString
 
Methods inherited from class org.ascape.model.LocatedAgent
calculateDistance, calculateDistance, countWithin, countWithin, countWithin, findMaximumWithin, findNearest, findNearest, findNearest, findNearest, findNearest, findWithin, findWithin, findWithin, findWithin, getAgentSize, getCoordinate, hasWithin, hasWithin, hasWithin, isUpdateNeeded, moveAway, moveAway, moveAway, moveTo, moveToRandomLocation, moveToward, moveToward, moveToward, randomWalk, requestUpdate, requestUpdateNext, setAgentSize, setCoordinate
 
Methods inherited from class org.ascape.model.Agent
clearDeleteMarker, death, deathCondition, die, execute, execute, fission, fissionCondition, fissioning, getColor, getImage, getImage, getIteration, getRoot, isDelete, isInitialized, iterate, markForDeletion, metabolism, move, movement, movementCondition, play, scapeCreated, setInitialized, setScape, update
 
Methods inherited from class org.ascape.model.AscapeObject
diffDeep, diffDeep, diffDeepBFS, diffDeepDFS, diffDeepValidate, diffDeepVisit, equalsDeep, equalsDeep, equalsDeep, getComparisonStream, getName, getRandom, getRandomSeed, getScape, randomInRange, randomInRange, randomIs, randomToLimit, reseed, setComparisonStream, setName, setRandom, setRandomSeed
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ascape.model.space.Location
clearDeleteMarker, getCoordinate, isDelete, markForDeletion, setCoordinate
 

Constructor Detail

ComplexLocation

public ComplexLocation()
Constructs a new Complex Location.

Method Detail

getNetwork

public java.util.List getNetwork()
Overrides:
getNetwork in class org.ascape.model.Cell

getColor

public java.awt.Color getColor()
Overrides:
getColor in class org.ascape.model.HostCell

testSelfAvailableCreate

public void testSelfAvailableCreate()
.

Specified by:
testSelfAvailableCreate in interface IComplexLocation

testSelfAvailableWithin

public void testSelfAvailableWithin()
.

Specified by:
testSelfAvailableWithin in interface IComplexLocation

testAgentHere

public void testAgentHere()
.

Specified by:
testAgentHere in interface IComplexLocation

testSelfAvailable

public void testSelfAvailable()
.

Specified by:
testSelfAvailable in interface IComplexLocation

testSelfWithinBounds

public void testSelfWithinBounds()
.

Specified by:
testSelfWithinBounds in interface IComplexLocation

withinBoundaries

public boolean withinBoundaries(double[] bounds)
.


isLocationGood

public boolean isLocationGood()
Gets the Location Good property for Complex Location.

Specified by:
isLocationGood in interface IComplexLocation
Returns:

setLocationGood

public void setLocationGood(boolean _locationGood)
Sets the Location Good property for Complex Location.

Specified by:
setLocationGood in interface IComplexLocation
Parameters:
_locationGood - the new Location Good value

getSpatialModel

public static SpatialModel getSpatialModel()
Gets the Spatial Model property for .

Returns:

setSpatialModel

public static void setSpatialModel(SpatialModel _spatialModel)
Sets the Spatial Model property for .

Parameters:
_spatialModel - the new Spatial Model value