|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.model.AscapeObject
org.ascape.model.Agent
org.ascape.model.LocatedAgent
org.ascape.model.Cell
org.ascape.model.CellOccupant
org.ascape.model.Scape
public class Scape
The base class for all collections of agents within ascape. Provides services
to identify other scape members, execute rules on members, support scape
views, and other features. Also provides methods for model creation and use;
a model is simply a special use of a scape.
While scapes are essentially collections of agents, there is no assumption
that these collections must be discrete. While there are currently no scapes
representing continuous space, there is no strong reason why a scape couldn't
do so. Continuous (or at least very fine-grained!) time may also be supported
at some point. Scapes are the basic building block of ascape models. Pick a
scape appropriate for your model. For example, you might want to create a
model that uses cells in a 2-dimensional array. Simply create an instance of
the scape you want:
Scape lattice = new Scape(new Array2DVonNeumann()); lattice.setExtent(new Coordinate2DDiscrete(x, y)); lattice.setPrototypeAgent(new MyPrototypeCell());In this example, extent defines the size of the lattice, and prototype agent is the agent that wil be cloned to populate the lattice.
ScapeList
, is created, and other scapes are added to it:
root = new Scape(); root.add(lattice);Or simply subclass
Scape
as a model, and use it as the root:
public class MyModel extends Scape { ... public MyModel() { add(lattice); ... }To provide behavior for your agents, you add rules to be executed upon them. (If members are scapes, the rules can be executed on their members as well.)
lattice.addRule(new MyRule());Rules are executed once for every iteration, on every agent. Some rules are added by default, or are used by the scape internally. (For example, initialization and rule iteration itself are both managed by rules.) For more information, see the documentation for Rule.
lattice.addView(new Overhead2DView());This registers the view as a listener of the scape and automatically provides a window for it if appropriate. The scape uses an event based Model View Controller design. After each iteration, each scape sends an update event to each of its views, and then waits for the views to update. It is every view's responsibility to inform its scape when it has updated, which it does by sending a control event. More general control events are used to control scape execution. Usually, you simply add a control bar view, which gives the user complete control over model execution.
lattice.addView(new ControlBarView());(A model scape adds a control bar automatically.) Scapes can automatically collect statistics on their members. (See StatCollectorCSA documentation for a description of how stats are created.) Here is an example of how this might be done:
agents.addStatCollectors({new StatCollectorCSA() { public double getValue(Object object) { return ((MyAgent) object).getMyInterestingValue(); } public String getName() { return "Interesting Value"; } },setPro ... }
ChartView myChart = new ChartView(); lattice.addView(myChart);You can double-click on a chart to select statistics to view, or add them in code.
chart.addSeries("Average Interesting Value", Color.blue);Finally, if you haven't added a control view, or you want the model to begin running upon execution, tell it to start. (Control events can be sent to any scape in the model, unless the event is scape specific. Model scapes start automatically; you can easily override this behavior.)
lattice.start();or send it
lattice.respondControl(ControlEvent.REQUEST_START);Scapes are initialized and iterated hierarchically. The initialization and iteration process are rules, and their behavior is well defined. For example, if you use a vector for your root scape, scapes will be initialized and iterated in the order in which they were added to the root. Of course, this is an imporant consideration whenever there are dependencies between scapes. On initialization, each scape first instantiates all of its members, and then initializes them. After initialization, statistics are gathered, and views are requested to update. Then, each rule is executed on its scape, statistics are gathered, and views are requested to update. This continues until a control event stops or pauses the model, or the iteration limit provided with
setAutoStopAt
is reached.<code> public class MyModel extends Scape { ... createScape() { [Instantiate and add scapes to model, add rules to the model] } createViews() { [and views to the model.] } ... } </code>Application:
java org.ascape.model.Scape mypath.MyModel <BR>Applet:
<APPLET name=AppletName codebase=[path] <param name="Scape" value="mypath.MyModel">></APPLET><BR>Note that it is neccesary to call Model with your model's fully qualified class name as the parameter. To allow your model to be invoked directly, override main.
Rule
,
ScapeListener
,
StatCollector
,
ControlEvent
,
Serialized FormNested Class Summary | |
---|---|
class |
Scape.ConditionalIterator
|
class |
Scape.DrawFeatureObservable
Just a class for a delegated proxy for draw features. |
Field Summary | |
---|---|
static int |
AGENT_ORDER
Symbol for by agent execution order. |
protected int |
agentsPerIteration
The number of agents to execute each rule across for each iteration. |
static int |
ALL_AGENTS
The symbol to execute rules against all agents in each iteration. |
static Rule |
CLEAR_STATS_RULE
A rule causing all children and members that are scapes to iterate. |
static Rule |
COLLECT_STATS_RULE
A rule causing all children and members that are scapes to iterate. |
static java.util.Comparator |
COMPARE_ORDERED_QUALIFIERS
|
static int |
COMPLETE_TOUR
Symbol for complete tour excution style. |
static java.lang.String |
copyrightAndCredits
Copyright and credits information for ascape w/ HTML style tags. |
static Rule |
CREATE_GRAPHIC_VIEW_RULE
A rule causing graphic views to be created for scape and all subscapes. |
static Rule |
CREATE_RULE
A rule causing the target scape and all its children scapes to be populated if auto create is set to true. |
static Rule |
CREATE_SCAPE_RULE
A rule causing the target scape to be populated. |
static Rule |
CREATE_VIEW_RULE
A rule causing viwews to be created for scape and all subscapes. |
static Rule |
EXECUTE_RULES_RULE
A rule causing all children and members that are scapes to iterate. |
static Rule |
INITIAL_RULES_RULE
A rule causing the targets initial rules to be executed on its members. |
protected VectorSelection |
initialRules
The rules that this scape will execute on its members upon initializtion. |
protected Agent |
prototypeAgent
An agent which which may be cloned to produce members of this collection. |
static int |
REPEATED_DRAW
Symbol for repeated random draw execution style. |
static int |
RULE_ORDER
Symbol for by rule execution order. |
static java.lang.String |
version
The current version of the Ascape framework as a whole. |
Fields inherited from class org.ascape.model.CellOccupant |
---|
PLAY_HOST_RULE, RANDOM_WALK_AVAILABLE_RULE |
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 | |
---|---|
Scape()
Constructs a scape with default list topology. |
|
Scape(CollectionSpace space)
Constructs a scape. |
|
Scape(CollectionSpace space,
java.lang.String name,
Agent prototypeAgent)
Constructs a scape of provided geometry, to be populated with clones of provided agent. |
|
Scape(java.lang.String name,
Agent prototypeAgent)
Constructs a scape of provided geometry, to be populated with clones of provided agent. |
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object a)
Adds the supplied object (agent) to this collection. |
void |
add(int index,
java.lang.Object o,
boolean isParent)
Adds the supplied object (assumed to be an agent) to this collection. |
boolean |
add(java.lang.Object a)
Adds the supplied object (agent) to this collection. |
boolean |
add(java.lang.Object agent,
boolean isParent)
Adds the supplied object (assumed to be an agent) to this collection. |
boolean |
addAll(java.util.Collection c)
Adds all of the agent in the specified collection to the end of the scape. |
void |
addDrawFeature(PlatformDrawFeature feature)
Adds the provided draw feature to this scape. |
void |
addInitialRule(Rule rule)
Adds a rule to be executed once following initialization. |
void |
addInitialRule(Rule rule,
boolean select)
Adds a rule to be executed once following initialization. |
void |
addRule(Rule rule)
Adds a rule to this scape, automatically selecting it. |
void |
addRule(Rule rule,
boolean select)
Adds a rule to this scape. |
void |
addScapeListener(ScapeListener listener)
Adds an observer to this scape. |
void |
addScapeListenerFirst(ScapeListener listener)
Adds an observer to this scape. |
void |
addStatCollector(StatCollector stat)
Adds the specified stat collector to this scape for automatic collection by the scape. |
StatCollector |
addStatCollectorIfNew(StatCollector stat)
Adds the specified stat collector iff and only if it hasn't allready been added. |
void |
addStatCollectors(StatCollector[] stats)
Adds the specified stat collectors to this scape for automatic collection by the scape. |
void |
addView(ScapeListener view)
Adds a view to this scape. |
void |
addView(ScapeListener view,
boolean createFrame)
Adds a view to this scape. |
void |
addView(ScapeListener view,
boolean createFrame,
boolean forceGUI)
Adds a view to this scape. |
void |
addViews(ScapeListener[] views)
Adds a view to this scape. |
void |
addViews(ScapeListener[] views,
boolean createFrame)
Adds an array of views to this scape. |
void |
addViews(ScapeListener[] views,
boolean createFrame,
boolean forceGUI)
Adds an array of views to this scape. |
void |
assignParameters(java.lang.String[] args)
Sets values for the models paramters based on supplied array of key value pairs, reporting if any of the keys (parameter names) are not found. |
void |
assignParameters(java.lang.String[] args,
boolean reportNotFound)
Sets values for the models paramters based on supplied array of key value pairs. |
double |
calculateDistance(Coordinate origin,
Coordinate target)
Returns the shortest distance between one LocatedAgent and another. |
double |
calculateDistance(LocatedAgent origin,
LocatedAgent target)
Returns the shortest distance between one agent and another. |
void |
clear()
Removes all agents from the scape. |
java.lang.Object |
clone()
Overides the clone method to do a deep clone of member state so that such state will not be shared between scapes. |
void |
construct()
Contructs the basic scape structure. |
boolean |
contains(java.lang.Object o)
Returns true if the scape collection contains the object (agent.) |
boolean |
containsAll(java.util.Collection c)
Returns true if this collection contains all of agents in the specified collection. |
java.lang.String |
contentsToString()
Returns a string composed of descriptions of the contents. |
int |
countWithin(Coordinate origin,
Conditional condition,
boolean includeSelf,
double distance)
Returns the number of agents within the specified distance of the agent that meet some condition. |
void |
createGraphicViews()
Override to create any graphical views for the scape. |
void |
createNonGraphicViews()
Overide to create and non-graphical views for the scape. |
void |
createScape()
Create this scape; contruct it, populate it, add rules, create statistic collectors, etc. |
void |
createSelfView()
Makes the scape a view of itself. |
void |
createViews()
Constructs the views for this scape. |
void |
createViews(java.lang.String[] args)
|
void |
environmentQuiting(ScapeEvent scapeEvent)
Method called as the entire envornmnet is about to be exited. |
void |
execute(java.util.List rules,
java.util.List agents)
Executes the provided rules on the supplied agentArray. |
void |
execute(Rule rule,
java.util.List agents)
Executes the provided rule on every member of the lattice, according to the rule settings and the execution order of this scape. |
void |
executeOnMembers()
Executes all of this scapes selected rules on its members. |
void |
executeOnMembers(java.lang.Object[] rules)
Executes the provided rules on every member of the collection, according to the rule settings and the execution order of the scape. |
void |
executeOnMembers(Rule rule)
Executes the provided rule on every member of the lattice, according to the rule settings and the execution order of this scape. |
void |
executeOnMembers(VectorSelection ruleSelection)
Executes the provided rules on every member of the lattice, according to the rule settings and the execution order of this scape. |
void |
executeOnRoot(Rule rule)
Propogates the rule for execution up to the root of the scape tree, then propogates down to all nodes. |
void |
executeOnRoot(Rule[] rules)
Propogates the rule for execution up to the root of the scape tree, then propogates down to all nodes. |
java.util.List |
find(Conditional condition)
Find the maximum cell of some data point. |
LocatedAgent |
findMaximum(DataPoint point)
Returns the agent with the maximum value. |
LocatedAgent |
findMaximum(java.util.Iterator iter,
DataPoint dataPoint)
Find the maximum cell of some data point. |
LocatedAgent |
findMaximumWithin(Coordinate coordinate,
DataPoint dataPoint,
Conditional condition,
boolean includeSelf,
double distance)
|
LocatedAgent |
findMinimum(DataPoint point)
Returns the agent with the minimum value. |
LocatedAgent |
findMinimum(java.util.Iterator iter,
DataPoint dataPoint)
|
LocatedAgent |
findMinimumWithin(Coordinate coordinate,
DataPoint dataPoint,
Conditional condition,
boolean includeSelf,
double distance)
|
LocatedAgent |
findNearest(Coordinate origin,
Conditional condition,
boolean includeOrigin,
double distance)
Finds the nearest agent that meets some condition. |
LocatedAgent |
findRandom()
Returns an agent randomly selected from the collection. |
Agent |
findRandom(Conditional condition)
Returns an agent randomly that matches a condition. |
Agent |
findRandom(Location excludeAgent)
Returns a random unoccupied discrete location in the space given with the lattice. |
Coordinate |
findRandomCoordinate()
Returns a coordinate randomly selected from the collection's space. |
java.util.List |
findWithin(Coordinate origin,
Conditional condition,
boolean includeSelf,
double distance)
Returns all agents within the specified distance of the agent. |
LocatedAgent |
get(Coordinate coordinate)
Returns the cell existing at the specified coordinate. |
java.lang.Object |
get(int index)
Returns the cell existing at the specified location. |
int |
getAgentsPerIteration()
Returns the number of agents to iterate through each iteration cycle. |
java.util.List |
getAllScapes()
Returns all scapes that are composed with this scape. |
CollectStats |
getCollectStats()
Returns the value collection rule in effect; null if no value collection. |
DataGroup |
getData()
Convenience method for obtaining sata for current run. |
java.lang.String |
getDescription()
Returns a long (paragraph length suggested) description of the scape. |
java.util.Vector |
getDrawFeatures()
Returns, as a vector, the draw features available for interpretation of members of this scape. |
java.util.Observable |
getDrawFeaturesObservable()
Returns an observable delegate that notifies users of draw features that a change has occurred. |
RuntimeEnvironment |
getEnvironment()
Returns the runtime environment, if any, for this scape. |
int |
getExecutionOrder()
Returns the execution order that has been set for this scape. |
int |
getExecutionStyle()
Returns the execution style that has been set for this scape. |
Coordinate |
getExtent()
Returns the extent of the scape. |
java.lang.String |
getHome()
Returns the path in which all files should by default be stored to and retrieved from. |
java.lang.String |
getHTMLDescription()
Returns a long (paragraph length suggested) description of the scape. |
VectorSelection |
getInitialRules()
Returns all the rules executed following scape initialization. |
int |
getIteration()
Returns current count of iterations. |
int |
getIterationsPerRedraw()
Returns the number of iterations to perform before updating views. |
Runner |
getModel()
Deprecated. please use #getRunner(). |
java.lang.String |
getName()
Returns the name of this scape, the model name if this is root and there is no name set. |
int |
getPausePeriod()
Returns the period to pause on. |
int |
getPeriod()
Returns the current period, which is just the iteration plus the period begin. |
java.lang.String |
getPeriodDescription()
Returns a string description of the current period, i.e. |
java.lang.String |
getPeriodName()
Returns the name that periods are referred to by. |
Location |
getPrototype()
Gets the prototype. |
Agent |
getPrototypeAgent()
Returns the agent that is cloned to populate this scape. |
Scape |
getRoot()
Returns the root of this scape, which may be this scape. |
VectorSelection |
getRules()
Returns all rules that this scape might execute. |
Runner |
getRunner()
Returns the runtime model environment, which manages model-wide state such as run status. |
java.util.ArrayList |
getScapeListeners()
Returns all listeners for this scape. |
int |
getSize()
Returns the size, or number of agents, of this Scape. |
Space |
getSpace()
|
int |
getStartPeriod()
Returns the period this scape begins running at. |
StatCollector[] |
getStatCollectors()
Returns the stat collectors currently calcualting stats for this scape. |
int |
getStopPeriod()
Returns the period this scape stops running at. |
Scape |
getSuperScape()
|
int |
getThreadCount()
|
AbstractUIEnvironment |
getUIEnvironment()
Returns the user environment for this scape. |
AbstractUIEnvironment |
getUserEnvironment()
Deprecated. retained for backward compatability, please use #getUIEnvironment instead. |
boolean |
hasWithin(Coordinate origin,
Conditional condition,
boolean includeSelf,
double distance)
Returns if there are agents within the specified distance of the origin that meet some Condition. |
void |
initialize()
Initializes the state of the scape. |
boolean |
isAllViewsUpdated()
Have all views and views of memebers of this scape been updated? [The grammer is terrible, but it fits the text pattern!] |
boolean |
isAutoCreate()
Is the scape responsible for creating itself and its members, or are other classes responsible for creating the scape? If true (default) calls the createScape method on model construction, typically causing the scape to be populated with clones of prototype agent. |
boolean |
isCellsRequestUpdates()
Do cells request view updates manually or are all cells automatically updated every view cycle? While requiring cells to request updates manually adds a little to complication to model design and maintenance, manual requests allow a significant boost in view performance, as all cells do not have to be drawn every cycle. |
boolean |
isEmpty()
Are there no agents in this scape? |
boolean |
isGraphic()
Returns false the scape is not a graphical user interface component. |
boolean |
isHome(Location a)
Checks if is home. |
boolean |
isLifeOfScape()
Returns true (default) if the listener is intended to be used only for the current scape; certainly true in this case. |
boolean |
isListenersAndMembersCurrent()
|
boolean |
isMembersActive()
Are members of this active scape model participants, that is, do they have rules executed upon them? Default is true. |
boolean |
isMutable()
|
boolean |
isPaused()
Has the scape been requested to pause? Note: indicates that a pause has been requested, not neccesarily that the simulation is paused; it may be completing its current iteration. |
boolean |
isPeriodic()
|
boolean |
isPopulateOnCreate()
Is the scape populated when the scape is created? That is, is the populate scape method called when create scape is executed? (Typically, the populate scape method will fill each cell with clones of the prototype cell, but of course this behavior can be overidden.) True by default. |
boolean |
isRoot()
Is this scape the root within its entire simulation context? That is, does this root not have any parent scapes? |
boolean |
isRunning()
Has the scape been requested to run? Note: if false, indicates that a stop has been requested, not neccesarily that it has occured, as the simulation continues the current iteration. |
boolean |
isScapeListener(ScapeListener listener)
Returns true if and only if the argument is an observer of this scape. |
boolean |
isSerializable()
|
boolean |
isStartOnOpen()
Does the scape automatically start upon opening? True by default. |
boolean |
isUpdateNeeded()
Has a view update been requested for this cell? |
boolean |
isValidPeriod(int period)
Is the supplied period a valid period for this scape? |
boolean |
isViewSelf()
Does the scape view itself? True by default for root scape when createViews is used, false otherwise. |
java.util.Iterator |
iterator()
Returns an iterator across all agents in this scape. |
protected void |
listenerOrMemberUpdated()
Called whenever a listener or member scape of this scape has been updated. |
void |
listenerUpdated(ScapeListener listener)
Called whenever a listener has been updated. |
void |
memberUpdated(Scape member)
Called whenever a member has been updated. |
void |
moveAway(LocatedAgent origin,
Coordinate target,
double distance)
Moves an agent toward the specified agent. |
void |
moveToward(LocatedAgent origin,
Coordinate target,
double distance)
Moves an agent toward the specified agent. |
Agent |
newAgent()
Creates a new agent in this collection by cloning the prototype agent, adding it in an arbitrary place (typically at the end of a list), and initializing it. |
Agent |
newAgent(boolean randomLocation)
Creates a new agent in this collection by cloning the prototype agent, adding it to a random or arbitrary (last in most cases) place in the collection, and initializing it. |
void |
notifyViews(int id)
Notifies all scape listeners that this scapes state has changed. |
void |
notifyViews(ScapeEvent event)
Notifies all scape listeners that this scapes state has changed. |
void |
populate()
Populates the scape with clones of the prototype agent. |
java.lang.Object |
remove(int index)
Removes the object at the index from this collection. |
boolean |
remove(java.lang.Object o)
Removes the supplied object (agent) from this collection. |
boolean |
removeAll(java.util.Collection c)
Removes all of the agnets contained in the collection. |
boolean |
removeDrawFeature(PlatformDrawFeature feature)
Removes the provided draw feature. |
void |
removeScapeListener(ScapeListener listener)
Removes the observer from this scape. |
void |
respondControl(ControlEvent control)
Responds to any control events fired at this scape. |
void |
respondDrawFeature(DrawFeatureEvent event)
This is for grid communication of changes in draw feature. |
boolean |
retainAll(java.util.Collection c)
Retains only the elements in the scape that are in the specified collection. |
java.util.List |
retrieveAllAccessors()
Returns all property accessors for this scape and recursivly for all member scapes of this scape. |
java.util.List |
retrieveAllAccessorsOrdered()
Returns all property accessors for this scape and recursivly for all member scapes of this scape. |
java.util.List |
retrieveModelAccessorsOrdered()
Returns all property accessors for this scape (excluding inappropriate/disabled accessors such as size) and recursivly for all member scapes of this scape. |
void |
save(java.io.File file)
Save the state of the scape to a file. |
void |
save(java.io.OutputStream os)
Save the state of the scape to an output stream. |
void |
scapeAdded(ScapeEvent scapeEvent)
Add a scape to this listener. |
void |
scapeClosing(ScapeEvent scapeEvent)
If the scape has delegated a view to itself, called each time a scape sends a "closing" event. |
void |
scapeDeserialized(ScapeEvent scapeEvent)
If the scape has delegated a view to itself, called each time a scape sends a "deserialized" event. |
void |
scapeInitialized(ScapeEvent scapeEvent)
If the scape has delegated a view to itself, called each time a scape sends a "initialize" event, indicating it has been initialized. |
void |
scapeIterated(ScapeEvent scapeEvent)
If the scape has delegated a view to itself, called each time the scape is iterated. |
ResetableIterator |
scapeIterator()
|
protected ResetableIterator |
scapeIterator(int start,
int limit)
|
ResetableIterator[] |
scapeIterators(int count)
Returns multiple independently thread safe scape iterators across all agents in this scape. |
void |
scapeNotification(ScapeEvent scapeEvent)
If the scape has delegated a view to itself, called each time the scape is updated. |
RandomIterator |
scapeRandomIterator()
|
void |
scapeRemoved(ScapeEvent scapeEvent)
Notifies the listener that the scape has removed it. |
void |
scapeSetup(ScapeEvent scapeEvent)
If the scape has delegated a view to itself, called each time a scape sends a "setup" method, indicating it needs to be setup for a run. |
void |
scapeStarted(ScapeEvent scapeEvent)
If the scape has delegated a view to itself, called each time the scape is started. |
void |
scapeStopped(ScapeEvent scapeEvent)
If the scape has delegated a view to itself, called each time the scape is stopped. |
Agent |
search(java.util.Comparator comparator,
java.lang.Object key)
Searches through the scape for an object (agent) that matches the supplied key and comparator. |
Agent |
searchMax(java.util.Comparator comparator)
Searches through the scape for an object (agent) that has the minimum value as defined by the comparator. |
Agent |
searchMin(java.util.Comparator comparator)
Searches through the scape for an object (agent) that has the minimum value as defined by the comparator. |
void |
set(Coordinate coordinate,
LocatedAgent agent)
Sets the agent at the specified coordinate to the supplied agent. |
void |
set(Coordinate coordinate,
LocatedAgent agent,
boolean isParent)
Sets the agent at the specified coordinate to the supplied agent. |
void |
set(int index,
java.lang.Object agent)
Sets the specified location to the provided agent. |
void |
set(int index,
java.lang.Object agent,
boolean isParent)
Sets the specified location to the provided agent. |
void |
setAgentsPerIteration(int agentsPerIteration)
Sets the number of agents to iterate through each iteration cycle. |
void |
setAutoCreate(boolean autoCreate)
Sets wether the scape is responsible for creating itself and its members, or other model components handle this. |
void |
setAutoRestart(boolean autoRestart)
Should the scape be automatically restarted upon stopping at its stop period? Setting this value to true allows easy cycling of models for demonstrations, model explorations, etc. |
void |
setCellsRequestUpdates(boolean cellsRequestUpdates)
Should cells request view updates manually or are all cells automatically updated every view cycle? See above. |
void |
setCollectStats(boolean collect)
If true, turns on value (typically for statistics) collection, else turns off stat collection. |
void |
setCollectStats(CollectStats collectStats)
Sets the value collection rule to the one supplied. |
void |
setDescription(java.lang.String description)
Returns a long (paragraph length suggested) description of the scape. |
void |
setEarliestPeriod(int earliestPeriod)
Sets the earliest period this scape is expected to be run at. |
void |
setExecutionOrder(int symbol)
Sets the order of rule execution for this scape. |
void |
setExecutionStyle(int symbol)
Sets the style that rules will be executed upon this scape. |
void |
setExtent(Coordinate extent)
Sets the size of the scape. |
void |
setExtent(int xval)
Sets the size of the scape. |
void |
setExtent(int xval,
int yval)
Sets the size of the scape. |
void |
setHome(java.lang.String home)
Sets the path in which to store all scape related files. |
void |
setHTMLDescription(java.lang.String description)
Returns a long (paragraph length suggested) description of the scape. |
void |
setInitialRules(VectorSelection initialRules)
|
void |
setIterationsPerRedraw(int iterationsPerRedraw)
Sets the number of iterations to perform before updating views, and propagates this setting to all scapes and views in the model. |
void |
setIterationsPerRedraw(int iterationsPerRedraw,
boolean propagate)
Sets the number of iterations to perform before updating views, and optionally propagates this setting to all scapes and views in the model. |
void |
setLatestPeriod(int latestPeriod)
Sets the latest period this scape is expected to be run at. |
void |
setMembersActive(boolean membersActive)
Sets whether members of this scape actively execute rules upon members. |
void |
setPaused(boolean pause)
Sets the paused state for all parent and member scapes. |
void |
setPausePeriod(int pausePeriod)
Causes the model to pause at the specified period. |
void |
setPeriodic(boolean periodic)
|
void |
setPeriodName(java.lang.String name)
Sets the name that periods are referred to by. |
void |
setPopulateOnCreate(boolean populateOnCreate)
Sets wether the scape is responsible for populating itself. |
void |
setPrototypeAgent(Agent prototypeAgent)
Sets the prototype agent, the agent that, in default implementations, will be cloned to populate this scape. |
void |
setRunner(Runner _runner)
|
void |
setRunning(boolean running)
Sets the running state for all scapes. |
void |
setSerializable(boolean serializable)
|
void |
setSize(int size)
Sets the size of the collection, filling with clones of prototype agent. |
void |
setSpace(Space space)
|
void |
setStartOnOpen(boolean startOnOpen)
Should the scape be automatically started upon opening? True by default. |
void |
setStartPeriod(int startPeriod)
Sets the start period for this scape. |
void |
setStopPeriod(int stopPeriod)
Sets the stop period for this scape. |
void |
setSuperScape(Scape superScape)
|
void |
setThreadCount(int threadCount)
|
void |
setViewSelf(boolean viewSelf)
Sets wether the scape is a view of itself. |
int |
size()
Returns the number of agents in the scape. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this collection in proper sequence. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array containing the current agents in this scape; the runtime type is specified by the passed array. |
java.lang.String |
toString()
Returns a string representation of this scape. |
java.util.Iterator |
withinIterator(Coordinate origin,
Conditional condition,
boolean includeSelf,
double distance)
Returns an iteration across all agents the specified distance from the origin. |
Methods inherited from class org.ascape.model.CellOccupant |
---|
die, findAvailableNeighbors, findNearest, findNearest, findNearest, findNearest, findNearest, findNeighbors, findNeighborsOnHost, findRandomAvailableNeighbor, findRandomNeighbor, findRandomNeighborOnHost, findWithin, findWithin, findWithin, getCoordinate, getHostCell, getHostScape, leave, moveAway, moveTo, moveToRandomLocation, moveToward, playNeighbors, playRandomNeighbor, randomWalk, randomWalkAvailable, setHostCell, setHostScape |
Methods inherited from class org.ascape.model.Cell |
---|
calculateNeighbors, countNeighbors, findOccupants, findRelative, getDistance, getNeighbors, getNeighbors, getNetwork, getOccupant, hostedCondition, isAvailable, removeOccupant, setNeighbors, setNeighborsList, setNetwork, setOccupant |
Methods inherited from class org.ascape.model.LocatedAgent |
---|
calculateDistance, calculateDistance, countWithin, countWithin, countWithin, findMaximumWithin, findWithin, getAgentSize, hasWithin, hasWithin, hasWithin, isUpdateNeeded, moveAway, moveAway, moveTo, moveToward, moveToward, requestUpdate, requestUpdateNext, setAgentSize, setCoordinate |
Methods inherited from class org.ascape.model.Agent |
---|
clearDeleteMarker, death, deathCondition, execute, execute, fission, fissionCondition, fissioning, getColor, getColor, getImage, getImage, 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, 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 java.util.Collection |
---|
equals, hashCode |
Methods inherited from interface org.ascape.model.event.ScapeListener |
---|
getScape |
Methods inherited from interface org.ascape.model.space.Location |
---|
clearDeleteMarker, isDelete, markForDeletion, setCoordinate |
Field Detail |
---|
public static final java.lang.String version
public static final java.lang.String copyrightAndCredits
public static final Rule CREATE_RULE
public static final Rule CREATE_VIEW_RULE
public static final Rule CREATE_GRAPHIC_VIEW_RULE
public static final Rule CREATE_SCAPE_RULE
public static final Rule INITIAL_RULES_RULE
public static final Rule EXECUTE_RULES_RULE
public static final Rule CLEAR_STATS_RULE
public static final Rule COLLECT_STATS_RULE
public static final int ALL_AGENTS
public static final int AGENT_ORDER
public static final int RULE_ORDER
public static final int COMPLETE_TOUR
public static final int REPEATED_DRAW
protected Agent prototypeAgent
protected VectorSelection initialRules
protected int agentsPerIteration
public static final java.util.Comparator COMPARE_ORDERED_QUALIFIERS
Constructor Detail |
---|
public Scape()
public Scape(CollectionSpace space)
space
- the topology for this scapepublic Scape(java.lang.String name, Agent prototypeAgent)
name
- a descriptive name for the scapeprototypeAgent
- the agent whose clones will be used to populate
this scapepublic Scape(CollectionSpace space, java.lang.String name, Agent prototypeAgent)
name
- a descriptive name for the scapeprototypeAgent
- the agent whose clones will be used to populate
this scapespace
- the topology for this scapeMethod Detail |
---|
public int getSize()
public void setPrototypeAgent(Agent prototypeAgent)
prototypeAgent
- the agent whose clones will populate this scapepublic Agent getPrototypeAgent()
public int getAgentsPerIteration()
public void setAgentsPerIteration(int agentsPerIteration)
public int getIterationsPerRedraw()
public void setIterationsPerRedraw(int iterationsPerRedraw)
public void setIterationsPerRedraw(int iterationsPerRedraw, boolean propagate)
public int getExecutionOrder()
public void setExecutionOrder(int symbol)
symbol
- RULE_ORDER for by rule execution, AGENT_ORDER for by agent
executionpublic int getExecutionStyle()
public void setExecutionStyle(int symbol)
symbol
- one of COMPLETE_TOUR or REPEATED_DRAWpublic Coordinate getExtent()
public void setExtent(Coordinate extent)
extent
- a coordinate at the maximum extentpublic void setExtent(int xval)
xval
- coordinate 1 of the extent
java.lang.RuntimeException
- if the scape is currently runningpublic void setExtent(int xval, int yval)
xval
- coordinate 1 of the extentyval
- coordinate 2 of the extent
java.lang.RuntimeException
- if the scape is currently running
java.lang.UnsupportedOperationException
- if the underlying space isn't
appropriatepublic java.lang.String getName()
getName
in interface SpaceContext
getName
in interface HasName
getName
in class AscapeObject
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getHTMLDescription()
public void setHTMLDescription(java.lang.String description)
public final Scape getRoot()
getRoot
in class Agent
public boolean isRoot()
public boolean isUpdateNeeded()
public void construct()
public void populate()
public void createScape()
setPopulateOnCreate(boolean)
public void initialize()
initialize
in interface Location
initialize
in class Cell
public final int getIteration()
getIteration
in class Agent
public final int getPeriod()
public java.lang.String getPeriodName()
public java.lang.String getPeriodDescription()
public void setPeriodName(java.lang.String name)
public void addRule(Rule rule)
public void addRule(Rule rule, boolean select)
rule
- the rule to addselect
- if rule should be run false if rule should just be made
available to be runpublic VectorSelection getRules()
public void addInitialRule(Rule rule)
rule
- to be executed at simulation startpublic void addInitialRule(Rule rule, boolean select)
rule
- to be executed at simulation startselect
- if rule should be run false if rule should just be made
available to be runpublic VectorSelection getInitialRules()
public void setInitialRules(VectorSelection initialRules)
public void addView(ScapeListener view)
view
- ComponentView to display in windowpublic void addView(ScapeListener view, boolean createFrame, boolean forceGUI)
view
- ComponentView to display in windowcreateFrame
- should the view be placed within a new window frame?forceGUI
- add a GUI view witout regard to the display GUI settingpublic void addView(ScapeListener view, boolean createFrame)
view
- ComponentView to display in windowcreateFrame
- should the view be placed within a new window frame?public void addViews(ScapeListener[] views)
views
- ComponentView to display in windowpublic void addViews(ScapeListener[] views, boolean createFrame, boolean forceGUI)
views
- ComponentViews array to display in windowcreateFrame
- should the view be placed within a new window frame?forceGUI
- add a GUI view witout regard to the dispaly GUI settingpublic void addViews(ScapeListener[] views, boolean createFrame)
views
- ComponentViews to display in windowcreateFrame
- should the view be placed within a new window frame?public void addScapeListener(ScapeListener listener)
listener
- the listern to addpublic void addScapeListenerFirst(ScapeListener listener)
listener
- the listern to addpublic boolean isScapeListener(ScapeListener listener)
public void removeScapeListener(ScapeListener listener)
public java.util.ArrayList getScapeListeners()
public void notifyViews(int id)
public void notifyViews(ScapeEvent event)
public final boolean isAllViewsUpdated()
protected void listenerOrMemberUpdated()
public void listenerUpdated(ScapeListener listener)
listener
- the listener tha has been updatedpublic void memberUpdated(Scape member)
member
- the member that has been updatedpublic void respondControl(ControlEvent control)
respondControl
in interface ControlListener
control
- the eventpublic void respondDrawFeature(DrawFeatureEvent event)
event
- public void setRunning(boolean running)
running
- if true, starts the thread, if false, stops it.public boolean isRunning()
public void setPaused(boolean pause)
pause
- if true, pauses, otherwise resumes iterationspublic boolean isPaused()
public void setEarliestPeriod(int earliestPeriod)
earliestPeriod
- the lowest period value this scape can havepublic void setLatestPeriod(int latestPeriod)
latestPeriod
- the highest period value this scape can havepublic boolean isValidPeriod(int period)
period
- the period to test
public int getStartPeriod()
public void setStartPeriod(int startPeriod) throws SpatialTemporalException
startPeriod
- the period to begin runs at
SpatialTemporalException
public int getStopPeriod()
public void setStopPeriod(int stopPeriod) throws SpatialTemporalException
stopPeriod
- the period the scape will stop at upon reaching
SpatialTemporalException
setAutoRestart(boolean)
public int getPausePeriod()
public void setPausePeriod(int pausePeriod)
pausePeriod
- when to pausepublic boolean isStartOnOpen()
public void setStartOnOpen(boolean startOnOpen)
startOnOpen
- true to start the scape upon opening a modelpublic void setAutoRestart(boolean autoRestart)
autoRestart
- true to restart the scape upon reaching stop period,
false to simple stopsetStopPeriod(int)
public Runner getModel()
public Runner getRunner()
public void setRunner(Runner _runner)
public java.lang.String getHome()
public void setHome(java.lang.String home)
home
- the fully qualified path name for this scapepublic boolean isMembersActive()
public void setMembersActive(boolean membersActive)
membersActive
- true if members actively execute rules, false
otherwisepublic boolean isCellsRequestUpdates()
public void setCellsRequestUpdates(boolean cellsRequestUpdates)
requestUpdate
method is called anytime a cell's state
changes such that a view may be affected. Some of these calls will be
handled for you automatically, for instance, it is not neccesary to call
requestUpdate when a cell moves, since the HostCell calls requestUpdates
for you. Typically, you will need to request updates when the internal
state of a cell changes and that is reflected in how a cell is
represeneted in a view, for example, if you color an agent for wealth,
you will need to call requestUpdate
anytime the agent wealth
changes.
cellsRequestUpdates
- if cells should request updates, false if cell
updates should be handled automaticallyLocatedAgent.requestUpdate()
public void execute(java.util.List rules, java.util.List agents)
public void execute(Rule rule, java.util.List agents)
public void executeOnMembers()
public void executeOnMembers(VectorSelection ruleSelection)
public void executeOnMembers(Rule rule)
public void executeOnMembers(java.lang.Object[] rules)
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
public void executeOnRoot(Rule[] rules)
public void executeOnRoot(Rule rule)
public Agent search(java.util.Comparator comparator, java.lang.Object key)
comparator
- the Comparator to use to perfrom the searchkey
- the key that an agent must match in order to be returned.public Agent searchMin(java.util.Comparator comparator)
comparator
- the Comparator to use to determin the minimumpublic Agent searchMax(java.util.Comparator comparator)
comparator
- the Comparator to use to determin the minimumpublic void setCollectStats(boolean collect)
public CollectStats getCollectStats()
public void setCollectStats(CollectStats collectStats)
public boolean isAutoCreate()
public void setAutoCreate(boolean autoCreate)
autoCreate
- if true calls createScape at construction, otherwise
model is built manuallypublic boolean isPopulateOnCreate()
public void setPopulateOnCreate(boolean populateOnCreate)
populateOnCreate
- if true calls createScape at construction,
otherwise model is built manuallypublic void addStatCollectors(StatCollector[] stats)
stats
- the stat collectors to add to this scape.public StatCollector addStatCollectorIfNew(StatCollector stat)
stat
- the stat collector to add to this scape. todo allow
replacement (cuurent version only adds if a stat does not
already exist.) possibly get rid of this once issue with
multiple stat collectors is resolved.public void addStatCollector(StatCollector stat)
stat
- the stat collector to add to this scape.public StatCollector[] getStatCollectors()
public void addDrawFeature(PlatformDrawFeature feature)
org.ascape.util.vis.awt.DrawFeature
public boolean removeDrawFeature(PlatformDrawFeature feature)
feature
- the draw feature to be removed
public java.util.Observable getDrawFeaturesObservable()
public java.util.Vector getDrawFeatures()
org.ascape.util.vis.awt.DrawFeature
public AbstractUIEnvironment getUIEnvironment()
public RuntimeEnvironment getEnvironment()
public java.util.List retrieveAllAccessors()
public java.util.List retrieveAllAccessorsOrdered()
public java.util.List retrieveModelAccessorsOrdered()
public java.util.List getAllScapes()
public boolean isViewSelf()
public void setViewSelf(boolean viewSelf)
viewSelf
- should the scape view itself.public void createSelfView()
public void createViews()
public void createGraphicViews()
public void createNonGraphicViews()
public void scapeInitialized(ScapeEvent scapeEvent)
scapeInitialized
in interface ScapeListener
scapeEvent
- the scape eventpublic void scapeSetup(ScapeEvent scapeEvent)
scapeSetup
in interface ScapeListener
scapeEvent
- the associated scape eventpublic void scapeIterated(ScapeEvent scapeEvent)
scapeIterated
in interface ScapeListener
scapeEvent
- the associated scape eventpublic void scapeStarted(ScapeEvent scapeEvent)
scapeStarted
in interface ScapeListener
scapeEvent
- the associated scape eventpublic void scapeStopped(ScapeEvent scapeEvent)
scapeStopped
in interface ScapeListener
scapeEvent
- the associated scape eventpublic void scapeNotification(ScapeEvent scapeEvent)
scapeNotification
in interface ScapeListener
scapeEvent
- the associated scape eventpublic void scapeClosing(ScapeEvent scapeEvent)
scapeClosing
in interface ScapeListener
scapeEvent
- the associated scape eventpublic void environmentQuiting(ScapeEvent scapeEvent)
environmentQuiting
in interface ScapeListener
scapeEvent
- the associated scape eventpublic void scapeDeserialized(ScapeEvent scapeEvent)
scapeDeserialized
in interface ScapeListener
scapeEvent
- the associated scape eventpublic void scapeAdded(ScapeEvent scapeEvent) throws java.util.TooManyListenersException
scapeAdded
in interface ScapeListener
scapeEvent
- the associated scape event
java.util.TooManyListenersException
- the too many listeners exceptionpublic void scapeRemoved(ScapeEvent scapeEvent)
scapeRemoved
in interface ScapeListener
scapeEvent
- the associated scape eventscapeAdded
public boolean isGraphic()
isGraphic
in interface ScapeListener
public boolean isLifeOfScape()
isLifeOfScape
in interface ScapeListener
public void save(java.io.File file) throws java.io.IOException
java.io.IOException
public void save(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void assignParameters(java.lang.String[] args, boolean reportNotFound)
args
- an array of strings with paramter-value paris in the form
"{paramter-name}={paramter-value}"reportNotFound
- if paramters not found should result in a console
notification and if errors in invocation should be reported,
false otherwisepublic void createViews(java.lang.String[] args)
public void assignParameters(java.lang.String[] args)
args
- an array of strings with paramter-value paris in the form
"{paramter-name}={paramter-value}"public final void moveAway(LocatedAgent origin, Coordinate target, double distance)
origin
- the agent movingtarget
- the agent's targetdistance
- the distance to movepublic final void moveToward(LocatedAgent origin, Coordinate target, double distance)
origin
- the agent movingtarget
- the agent's targetdistance
- the distance to movepublic double calculateDistance(LocatedAgent origin, LocatedAgent target)
origin
- the starting agenttarget
- the ending agentpublic final double calculateDistance(Coordinate origin, Coordinate target)
origin
- one LocatedAgenttarget
- another LocatedAgentpublic final java.util.List find(Conditional condition)
condition
-
public final LocatedAgent findMaximum(java.util.Iterator iter, DataPoint dataPoint)
iter
- dataPoint
-
public final LocatedAgent findMinimumWithin(Coordinate coordinate, DataPoint dataPoint, Conditional condition, boolean includeSelf, double distance)
public final LocatedAgent findMaximumWithin(Coordinate coordinate, DataPoint dataPoint, Conditional condition, boolean includeSelf, double distance)
public final LocatedAgent findMinimum(java.util.Iterator iter, DataPoint dataPoint)
public final java.util.Iterator withinIterator(Coordinate origin, Conditional condition, boolean includeSelf, double distance)
origin
- the starting cellincludeSelf
- should the origin be includeddistance
- the distance agents must be within to be includedpublic LocatedAgent findMinimum(DataPoint point)
point
- the data point to use to make the comparison for minimumpublic LocatedAgent findMaximum(DataPoint point)
point
- the data point to use to make the comparison for maximumpublic final LocatedAgent findNearest(Coordinate origin, Conditional condition, boolean includeOrigin, double distance)
origin
- the coordinate to find agents nearcondition
- the condition that found agent must meetincludeOrigin
- if the origin should be includeddistance
- the maximum distance around the origin to lookpublic final Coordinate findRandomCoordinate()
public final java.util.List findWithin(Coordinate origin, Conditional condition, boolean includeSelf, double distance)
origin
- the coordinate at the center of the searchincludeSelf
- whether or not the starting agent should be included
in the searchdistance
- the distance agents must be within to be includedpublic final int countWithin(Coordinate origin, Conditional condition, boolean includeSelf, double distance)
origin
- the coordinate at the center of the searchcondition
- the condition the agent must meet to be includeddistance
- the distance agents must be within to be includedpublic final boolean hasWithin(Coordinate origin, Conditional condition, boolean includeSelf, double distance)
origin
- the coordinate at the center of the searchcondition
- the condition the agent must meet to be includeddistance
- the distance agents must be within to be includedpublic final boolean isMutable()
public java.lang.String contentsToString()
public java.lang.String toString()
toString
in class Cell
public boolean isSerializable()
public void setSerializable(boolean serializable)
public java.lang.Object clone()
clone
in interface ScapeListener
clone
in interface Location
clone
in class CellOccupant
public final LocatedAgent findRandom()
public Agent findRandom(Location excludeAgent)
excludeAgent
- a cell to exclude from get (typically origin)public final Agent findRandom(Conditional condition)
condition
- the condition that must be matchedpublic Agent newAgent()
public Agent newAgent(boolean randomLocation)
randomLocation
- should the agent be placed in a random location, or
in an arbitrary location?public int size()
size
in interface java.util.Collection
public final boolean isEmpty()
isEmpty
in interface java.util.Collection
public final boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
o
- the agent to search for
public final java.lang.Object[] toArray()
toArray
in interface java.util.Collection
Arrays.asList(java.lang.Object[])
public final java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
a
- the array to copy the agents to
java.lang.ArrayStoreException
- if the runtime type of the
specified array doesn't match all agentspublic final boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
c
- collection of agents to be found in the scape
public final boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
c
- collection whose agents are to be added to the scape
public final boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
c
- collection whose agents are to be added to the scape
public final boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
c
- collection whose agents are to be retained in the scape
public final void clear()
clear
in interface java.util.Collection
public boolean add(java.lang.Object a)
add
in interface java.util.Collection
public final boolean add(java.lang.Object agent, boolean isParent)
agent
- the agent to addisParent
- should this scape be made the parent scape of the agent?
java.lang.UnsupportedOperationException
- if this scape's space is not a
list.public final void add(int index, java.lang.Object a)
java.lang.UnsupportedOperationException
- if this scape's space is not a
list.public final void add(int index, java.lang.Object o, boolean isParent)
o
- the agent to addisParent
- should this scape be made the parent scape of the agent?
java.lang.UnsupportedOperationException
- if this scape's space is not a
list.public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
o
- the agent to be removed
public final java.lang.Object remove(int index)
index
- the index for the agent to remove
java.lang.UnsupportedOperationException
- if this scape's space is not a
list.public final LocatedAgent get(Coordinate coordinate)
public final void set(Coordinate coordinate, LocatedAgent agent, boolean isParent)
coordinate
- the coordinate to add the agent atagent
- the agent to addpublic void set(Coordinate coordinate, LocatedAgent agent)
coordinate
- the coordinate to add the agent atagent
- the agent to addpublic final java.lang.Object get(int index)
java.lang.UnsupportedOperationException
- if this scape's space is not a
list.public void set(int index, java.lang.Object agent)
java.lang.UnsupportedOperationException
- if this scape's space is not a
list.public void set(int index, java.lang.Object agent, boolean isParent)
java.lang.UnsupportedOperationException
- if this scape's space is not a
list.public final ResetableIterator scapeIterator()
public final RandomIterator scapeRandomIterator()
protected final ResetableIterator scapeIterator(int start, int limit)
public boolean isPeriodic()
public void setPeriodic(boolean periodic)
public Scape getSuperScape()
public void setSuperScape(Scape superScape)
public final ResetableIterator[] scapeIterators(int count)
public boolean isListenersAndMembersCurrent()
public final Space getSpace()
public void setSpace(Space space)
public void setSize(int size)
size
- a coordinate describing the size of this scapepublic int getThreadCount()
public void setThreadCount(int threadCount)
public Location getPrototype()
SpaceContext
getPrototype
in interface SpaceContext
public boolean isHome(Location a)
SpaceContext
isHome
in interface SpaceContext
a
- the a
public DataGroup getData()
public AbstractUIEnvironment getUserEnvironment()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |