Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lowlevel_framework/source/src/lowlevel/Cluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class Cluster {

private int numInputs;

private String code;

public Cluster(){
states = new HashSet<State>();
}
Expand Down Expand Up @@ -59,6 +61,8 @@ public int getInputs(){
}




public String getEncodedCluster(){
StringBuilder bld = new StringBuilder();

Expand All @@ -76,4 +80,8 @@ public String getEncodedCluster(){
}
return bld.toString();
}

public String getCode() {
return code;
}
}
11 changes: 11 additions & 0 deletions lowlevel_framework/source/src/lowlevel/StateMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class StateMachine {
private int numInputs;
private int numOutputs;

private State resetState;

public String getEncoding(){
return null;
}
Expand All @@ -22,4 +24,13 @@ public int getNumInputs() {
public int getNumOutputs(){
return numOutputs;
}
public String getResetState(){ return resetState.toString(); }

public int getNumClusters(){
return clusters.size();
}

public Set<Cluster> getClusters(){
return this.clusters;
}
}