Fix a bug with edge line styling.

This commit is contained in:
Akinori MUSHA 2014-08-29 17:26:38 +09:00
parent 1cea2ba36e
commit 05dd52dc3d

View file

@ -138,7 +138,7 @@ module DotHelper
def agent_edge(agent, receiver)
edge(agent_id[agent],
agent_id[receiver],
style: ('dashed' unless agent.can_control_other_agents? || !receiver.propagate_immediately?),
style: ('dashed' unless receiver.propagate_immediately?),
label: (" #{agent.control_action}s " if agent.can_control_other_agents?),
arrowhead: ('empty' if agent.can_control_other_agents?),
color: (@disabled if agent.disabled? || receiver.disabled?))