Skip to content

Commit

Permalink
Fix formatting, refine comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrfrantz committed Jun 8, 2019
1 parent 3f4ebcb commit 068e325
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public Object report(final Argument[] args, final Context ctx)
if (maxDistance < 0) {
throw new ExtensionException(DBSCANExtensionErrors.ERROR_NEGATIVE_MAXIMUM_DISTANCE_OF_ELEMENTS);
}

if (ctx == null || ctx.world() == null) {
throw new ExtensionException(DBSCANExtensionErrors.ERROR_MODEL_CONTEXT_INACCESSIBLE);
}
Expand Down Expand Up @@ -274,7 +274,7 @@ public Object report(final Argument[] args, final Context ctx)

// Convert generated lists of clusters to nested LogoList
LogoListBuilder list = new LogoListBuilder();

for (ArrayList<org.nlogo.api.Agent> intList: tmpList) {
LogoListBuilder internalBuilder = new LogoListBuilder();
for (org.nlogo.api.Agent agent: intList) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public class DistanceMetricNetLogoAgentLocationHorizontalCylinder implements DistanceMetric<Agent>{

private final int height;

public DistanceMetricNetLogoAgentLocationHorizontalCylinder(final int height) {
this.height = height;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class DistanceMetricNetLogoAgentLocationTorus implements DistanceMetric<A

private final int width;
private final int height;

public DistanceMetricNetLogoAgentLocationTorus(final int width, final int height) {
this.width = width;
this.height = height;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public class DistanceMetricNetLogoAgentLocationVerticalCylinder implements DistanceMetric<Agent>{

private final int width;

public DistanceMetricNetLogoAgentLocationVerticalCylinder(final int width) {
this.width = width;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public DistanceMetricNetLogoAgentVariable(final String field) {
// field variable has to be upper case; ensured in calling code
this.field = field;
}

@Override
public double calculateDistance(final Agent val1, final Agent val2) throws DBSCANClusteringException {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class DistanceMetricNetLogoPatchVariable implements DistanceMetric<Agent>
public DistanceMetricNetLogoPatchVariable(final Integer field) {
this.field = field;
}

@Override
public double calculateDistance(final Agent val1, final Agent val2) throws DBSCANClusteringException {
try {
Expand Down

0 comments on commit 068e325

Please sign in to comment.