|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AgentType
- EdgeType
- public interface MoreNetworkModifier<AgentType,EdgeType extends MoreEdge<? super AgentType>>
MORe
The MoreNetworkModifier interface provides methods to consistently add agents to and remove agents from
an existing network. It is especially useful in combination with MoreNetworkBuilder
and part of the MoreNetworkService
interface.
It goes beyond a MoreNetworkEdgeModifier
and MoreEdgeFactory
and rather uses
MoreNetworkEdgeModifier
s to handle edges.
Method Summary | |
---|---|
boolean |
addAndLinkNode(MoreNetwork<AgentType,EdgeType> network,
AgentType node)
Removes an agent from the given network and deletes all its links. |
boolean |
removeNode(MoreNetwork<AgentType,EdgeType> network,
AgentType node)
Adds an agent to the given network. |
void |
setEdgeModifier(MoreNetworkEdgeModifier<AgentType,EdgeType> edgeModifier)
|
Methods inherited from interface de.cesr.more.manipulate.edge.MoreNetworkEdgeModifier |
---|
createEdge, getEdgeFactory, removeEdge |
Method Detail |
---|
boolean addAndLinkNode(MoreNetwork<AgentType,EdgeType> network, AgentType node)
#addAgent(Object, MoreRsNetwork)
performed.
agent
- the agent to removenetwork
- the network to remove the given agent from
boolean removeNode(MoreNetwork<AgentType,EdgeType> network, AgentType node)
MoreNetworkBuilder
this method should connect the agent in a way the
agent
- the agent to addnetwork
- the network the given agent is added to
void setEdgeModifier(MoreNetworkEdgeModifier<AgentType,EdgeType> edgeModifier)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |