de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.AbstractIFNetGraphics Maven / Gradle / Ivy
Show all versions of SEPIA Show documentation
package de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics;
import java.util.HashMap;
import java.util.Map;
import de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.attributes.Position;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetFlowRelation;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetMarking;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetPlace;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetTransition;
public class AbstractIFNetGraphics,
T extends AbstractIFNetTransition,
F extends AbstractIFNetFlowRelation,
M extends AbstractIFNetMarking> extends AbstractCPNGraphics
{
private Map accessFunctionGraphics = new HashMap();
private Map subjectGraphics = new HashMap();
private Position clearancesPosition = new Position();
private Position tokenLabelsPosition = new Position();
public Map getAccessFunctionGraphics() {
return accessFunctionGraphics;
}
public Position getClearancesPosition() {
return clearancesPosition;
}
public Map getSubjectGraphics() {
return subjectGraphics;
}
public Position getTokenLabelsPosition() {
return tokenLabelsPosition;
}
public void setAccessFunctionGraphics(Map accessFunctionGraphics) {
this.accessFunctionGraphics = accessFunctionGraphics;
}
public void setClearancesPosition(Position clearancesPosition) {
this.clearancesPosition = clearancesPosition;
}
public void setSubjectGraphics(Map subjectGraphics) {
this.subjectGraphics = subjectGraphics;
}
public void setTokenLabelsPosition(Position tokenLabelsPosition) {
this.tokenLabelsPosition = tokenLabelsPosition;
}
@Override
public String toString() {
StringBuilder str = new StringBuilder();
str.append(super.toString());
str.append(" accessFunctionGraphics# " + accessFunctionGraphics.size());
if (accessFunctionGraphics.size() > 0)
str.append(":\n" + map2Str(accessFunctionGraphics) + "\n");
else
str.append("\n");
str.append(" subjectGraphics# " + subjectGraphics.size());
if (subjectGraphics.size() > 0)
str.append(":\n" + map2Str(subjectGraphics) + "\n");
else
str.append("\n");
if (clearancesPosition != null)
str.append(" clearancesPosition#: " + clearancesPosition + "\n");
if (tokenLabelsPosition != null)
str.append(" tokenLabelsPosition#: " + tokenLabelsPosition + "\n");
return str.toString();
}
}