Package repast.simphony.scenario.data
Class UserPathData
java.lang.Object
repast.simphony.scenario.data.UserPathData
Encapsulates metadata about a model, the classpath etc.
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAgentEntry
(String path, List<String> filters) Adds the specified path as path on which agent classes can be found.void
Adds the specified entry to the classpath.Gets an iterable over the AgentPath entries in this model data.Gets an iterable over all the classpath entries that should be processed for annotations.Gets an iterable over all the classpath entries.int
Gets the number of agent entries in this model data.getName()
Gets the name the model.
-
Constructor Details
-
UserPathData
-
-
Method Details
-
getName
Gets the name the model.- Returns:
- the name the model.
-
addEntry
Adds the specified entry to the classpath. If the entry is a directory and it contains any .class files or its children of the directory contain any .class path the directory itself will be added. If the directory contains any jar files those will be added as well.If the entry ends with .jar that jar file will be added.
- Parameters:
directory
- the directory to addprocessAnnotations
- whether or not the entry should be processed for annotations
-
addAgentEntry
Adds the specified path as path on which agent classes can be found.- Parameters:
path
- the path entryfilters
-
-
getAgentEntryCount
public int getAgentEntryCount()Gets the number of agent entries in this model data.- Returns:
- the number of agent entries in this model data.
-
agentEntries
Gets an iterable over the AgentPath entries in this model data.- Returns:
- an iterable over the AgentPath entries in this model data.
-
classpathEntries
Gets an iterable over all the classpath entries.- Returns:
- an iterable over all the classpath entries.
-
annotationCPEntries
Gets an iterable over all the classpath entries that should be processed for annotations.- Returns:
- an iterable over all the classpath entries that should be processed for annotations.
-