Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Rendering executeOn as dashed arrows in the DOT codec
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Chauvel committed Nov 20, 2014
1 parent 2fe7655 commit c5b5e54
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
8 changes: 6 additions & 2 deletions codecs/dot/src/main/java/org/cloudml/codecs/DotPrinter.java
Expand Up @@ -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) {
Expand Down Expand Up @@ -114,7 +118,7 @@ public void onExecuteInstanceEntry(ExecuteInstance subject) {
}

private String executeOnFormatting(ExecuteInstance subject) {
return "label=\"" + "run on" + "\"";
return "style=\"dashed\"";
}

private void ensureBufferIsReady() {
Expand Down
24 changes: 12 additions & 12 deletions indicators/src/main/java/org/cloudml/indicators/TrioExporter.java
@@ -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;
Expand Down

0 comments on commit c5b5e54

Please sign in to comment.