Skip to content
Snippets Groups Projects
Commit d107f574 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

visibility and javadoc

parent 8495893d
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,10 @@ import org.slf4j.LoggerFactory;
import teetime.framework.Traverser.VisitorBehavior;
import teetime.framework.pipe.DummyPipe;
public class A0UnconnectedPort implements ITraverserVisitor {
/**
* Connects unconnected ports to a dummy pipe
*/
class A0UnconnectedPort implements ITraverserVisitor {
private static final Logger LOGGER = LoggerFactory.getLogger(A0UnconnectedPort.class);
......
......@@ -20,7 +20,10 @@ import java.util.Set;
import teetime.framework.Traverser.VisitorBehavior;
public class A1ThreadableStageCollector implements ITraverserVisitor {
/**
* Searches for threadable stages
*/
class A1ThreadableStageCollector implements ITraverserVisitor {
private final Set<Stage> threadableStages = new HashSet<Stage>();
......
......@@ -17,12 +17,15 @@ package teetime.framework;
import java.util.Set;
import teetime.framework.Traverser.VisitorBehavior;
import teetime.framework.pipe.IPipe;
import com.carrotsearch.hppc.ObjectIntHashMap;
import com.carrotsearch.hppc.ObjectIntMap;
import teetime.framework.Traverser.VisitorBehavior;
import teetime.framework.pipe.IPipe;
/**
* Checks for invalid thread assignments
*/
public class A2InvalidThreadAssignmentCheck {
private static final int DEFAULT_COLOR = 0;
......
......@@ -26,7 +26,10 @@ import teetime.framework.pipe.SingleElementPipeFactory;
import teetime.framework.pipe.SpScPipeFactory;
import teetime.framework.pipe.UnboundedSpScPipeFactory;
public class A3PipeInstantiation implements ITraverserVisitor {
/**
* Automatically instantiates the correct pipes
*/
class A3PipeInstantiation implements ITraverserVisitor {
private static final IPipeFactory interBoundedThreadPipeFactory = new SpScPipeFactory();
private static final IPipeFactory interUnboundedThreadPipeFactory = new UnboundedSpScPipeFactory();
......@@ -67,12 +70,11 @@ public class A3PipeInstantiation implements ITraverserVisitor {
} else {
interUnboundedThreadPipeFactory.create(pipe.getSourcePort(), pipe.getTargetPort(), 4);
}
return;
} else {
// normal or reflexive pipe => intra
intraThreadPipeFactory.create(pipe.getSourcePort(), pipe.getTargetPort(), 4);
}
intraThreadPipeFactory.create(pipe.getSourcePort(), pipe.getTargetPort(), 4);
}
}
......@@ -17,7 +17,10 @@ package teetime.framework;
import java.util.Set;
public class A4StageAttributeSetter {
/**
* Sets the attributes of all stages within the same thread
*/
class A4StageAttributeSetter {
private final Configuration configuration;
private final Set<Stage> threadableStages;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment