Class NetworkDescriptor
- java.lang.Object
-
- repast.simphony.dataLoader.ui.wizard.builder.NetworkDescriptor
-
- All Implemented Interfaces:
Descriptor
public class NetworkDescriptor extends Object implements Descriptor
-
-
Constructor Summary
Constructors Constructor Description NetworkDescriptor()
NetworkDescriptor(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRelationship(AgentDescriptor source, AgentDescriptor target, double strength)
void
addRelationship(RelationshipDescriptor descriptor)
String
getName()
Retrieves the name of the descriptor.List<RelationshipDescriptor>
getRelationships()
boolean
isDirected()
void
removeRelationships(AgentDescriptor descriptor)
void
setDirected(boolean directed)
void
setName(String name)
Sets the name of the descriptor.void
setRelationships(List<RelationshipDescriptor> relationships)
-
-
-
Constructor Detail
-
NetworkDescriptor
public NetworkDescriptor(String name)
-
NetworkDescriptor
public NetworkDescriptor()
-
-
Method Detail
-
isDirected
public boolean isDirected()
-
setDirected
public void setDirected(boolean directed)
-
getName
public String getName()
Description copied from interface:Descriptor
Retrieves the name of the descriptor. This will generally be used for displaying the descriptor in GUIs and in other situations.- Specified by:
getName
in interfaceDescriptor
- Returns:
- the name of this descriptor
-
setName
public void setName(String name)
Description copied from interface:Descriptor
Sets the name of the descriptor. This will generally be used for displaying the descriptor in GUIs and in other situations.- Specified by:
setName
in interfaceDescriptor
- Parameters:
name
- the name of this descriptor
-
getRelationships
public List<RelationshipDescriptor> getRelationships()
-
setRelationships
public void setRelationships(List<RelationshipDescriptor> relationships)
-
addRelationship
public void addRelationship(AgentDescriptor source, AgentDescriptor target, double strength)
-
addRelationship
public void addRelationship(RelationshipDescriptor descriptor)
-
removeRelationships
public void removeRelationships(AgentDescriptor descriptor)
-
-