Commit 2dc00721 authored by Martin Maina Mbuthia's avatar Martin Maina Mbuthia
Browse files

change fifo location

parent f5ac78f6
<!--
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="src/" kind="src" path="ui"/>
<classpathentry kind="src" path="ui/src"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="lib" path="/LXStudio-IDE/lib/lx-0.2.0-SNAPSHOT-jar-with-dependencies.jar" sourcepath="/LXStudio-IDE/lib/lx-0.2.0-SNAPSHOT-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:platform:/resource/LXStudio-IDE/lib/lx-0.2.0-SNAPSHOT-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="ui/lib/lx/lx-0.2.0-SNAPSHOT-jar-with-dependencies.jar"/>
<classpathentry kind="lib" path="ui/lib/lx/lx-0.2.0-SNAPSHOT-javadoc.jar"/>
<classpathentry kind="lib" path="ui/lib/lx/lx-0.2.0-SNAPSHOT-sources.jar"/>
<classpathentry kind="lib" path="ui/lib/lx/lxstudio-0.2.0-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="ui/lib/lx/p3lx-0.2.0-SNAPSHOT-javadoc.jar"/>
<classpathentry kind="lib" path="ui/lib/lx/p3lx-0.2.0-SNAPSHOT-sources.jar"/>
<classpathentry kind="lib" path="ui/lib/lx/p3lx-0.2.0-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="ui/lib/gson-2.3.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
-->
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="ui"/>
......@@ -15,3 +42,4 @@
</classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
File mode changed from 100644 to 100755
......@@ -6,5 +6,5 @@ final class Config {
static final String FLYER_CONFIG_FILE = "data/testflyer.json";
static final String PIPE_DIR = "/tmp/myfifo";
static final String PIPE_DIR = "/tmp/fractal_flyers";
}
......@@ -115,16 +115,16 @@ abstract class Engine {
RandomAccessFile[] named_pipes = new RandomAccessFile[numFlyers];
// TODO with 76 flyers, create directory myfifo
// File dir = new File(pipe_dir);
// if (!dir.mkdir()) {
// System.out.println("Directory creation failed!");
// System.exit(1);
// }
File dir = new File(pipe_dir);
if (!dir.mkdir()) {
System.out.println("Directory creation failed!");
System.exit(1);
}
// create named pipe for each flyer
for (int i = 0; i < numFlyers; i++) {
Flyer flyer = model.getFlyer(i);
File fPipe = new File(pipe_dir /*+ model.flyers[i].getIndex()*/); //TODO uncomment
File fPipe = new File(pipe_dir + "flyer" + model.flyers[i].getIndex()); //TODO uncomment
try {
named_pipes[i] = new RandomAccessFile(fPipe, "rw");
} catch (FileNotFoundException e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment