Permalink
Browse files

Rendering executeOn as dashed arrows in the DOT codec

  • Loading branch information...
fchauvel committed Nov 20, 2014
1 parent 2fe7655 commit c5b5e5496f5a24db67fecf9d3470b7c7b75d3c94
@@ -69,7 +69,11 @@ public void onVMInstanceEntry(VMInstance subject) {
dotText.append("\t")
.append(symbols.initialise(subject))
.append(" [")
.append(componentFormatting(subject)).append("];\n");
.append(vmFormatting(subject)).append("];\n");
}
private String vmFormatting(ComponentInstance<? extends Component> subject) {
return "label=\"" + subject.getName() + "\", style=\"filled\"";
}
private String componentFormatting(ComponentInstance<? extends Component> subject) {
@@ -114,7 +118,7 @@ public void onExecuteInstanceEntry(ExecuteInstance subject) {
}
private String executeOnFormatting(ExecuteInstance subject) {
return "label=\"" + "run on" + "\"";
return "style=\"dashed\"";
}
private void ensureBufferIsReady() {
@@ -1,23 +1,23 @@
/**
* This file is part of CloudML [ http://cloudml.org ]
*
* Copyright (C) 2012 - SINTEF ICT Contact: Franck Chauvel
* <franck.chauvel@sintef.no>
* Copyright (C) 2012 - SINTEF ICT
* Contact: Franck Chauvel <franck.chauvel@sintef.no>
*
* Module: root
*
* CloudML is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
* CloudML is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* CloudML is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
* CloudML is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with CloudML. If not, see
* You should have received a copy of the GNU Lesser General
* Public License along with CloudML. If not, see
* <http://www.gnu.org/licenses/>.
*/
package org.cloudml.indicators;

0 comments on commit c5b5e54

Please sign in to comment.