Skip to content

Commit

Permalink
Merge branch 'ode-587' of https://github.com/usdot-jpo-ode/jpo-ode in…
Browse files Browse the repository at this point in the history
…to ode-587
  • Loading branch information
tonychen091 committed Oct 20, 2017
2 parents a10a6e6 + 75928e4 commit 7dfda41
Show file tree
Hide file tree
Showing 10 changed files with 258 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ private LaneWidthBuilder() {
}

public static Long laneWidth(Long jlw) {
return BigDecimal.valueOf(jlw).scaleByPowerOfTen(1).longValue();
return BigDecimal.valueOf(jlw).scaleByPowerOfTen(2).longValue();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

import java.math.BigDecimal;

import us.dot.its.jpo.ode.j2735.dsrc.OffsetLL_B12;

public class OffsetLLB12Builder {

private OffsetLLB12Builder() {
throw new UnsupportedOperationException();
}

public static OffsetLL_B12 offsetLLB12(BigDecimal offset) {
return new OffsetLL_B12(offset.scaleByPowerOfTen(7).intValue());
public static int offsetLLB12(BigDecimal offset) {
return offset.scaleByPowerOfTen(7).intValue();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

import java.math.BigDecimal;

import us.dot.its.jpo.ode.j2735.dsrc.OffsetLL_B14;

public class OffsetLLB14Builder {

private OffsetLLB14Builder() {
throw new UnsupportedOperationException();
}

public static OffsetLL_B14 offsetLLB14(BigDecimal offset) {
return new OffsetLL_B14(offset.scaleByPowerOfTen(7).intValue());
public static int offsetLLB14(BigDecimal offset) {
return offset.scaleByPowerOfTen(7).intValue();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

import java.math.BigDecimal;

import us.dot.its.jpo.ode.j2735.dsrc.OffsetLL_B16;

public class OffsetLLB16Builder {

private OffsetLLB16Builder() {
throw new UnsupportedOperationException();
}

public static OffsetLL_B16 offsetLLB16(BigDecimal offset) {
return new OffsetLL_B16(offset.scaleByPowerOfTen(7).intValue());
public static int offsetLLB16(BigDecimal offset) {
return offset.scaleByPowerOfTen(7).intValue();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

import java.math.BigDecimal;

import us.dot.its.jpo.ode.j2735.dsrc.OffsetLL_B18;

public class OffsetLLB18Builder {

private OffsetLLB18Builder() {
throw new UnsupportedOperationException();
}

public static OffsetLL_B18 offsetLLB18(BigDecimal offset) {
return new OffsetLL_B18(offset.scaleByPowerOfTen(7).intValue());
public static int offsetLLB18(BigDecimal offset) {
return offset.scaleByPowerOfTen(7).intValue();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

import java.math.BigDecimal;

import us.dot.its.jpo.ode.j2735.dsrc.OffsetLL_B22;

public class OffsetLLB22Builder {

private OffsetLLB22Builder() {
throw new UnsupportedOperationException();
}

public static OffsetLL_B22 offsetLLB22(BigDecimal offset) {
return new OffsetLL_B22(offset.scaleByPowerOfTen(7).intValue());
public static int offsetLLB22(BigDecimal offset) {
return offset.scaleByPowerOfTen(7).intValue();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

import java.math.BigDecimal;

import us.dot.its.jpo.ode.j2735.dsrc.OffsetLL_B24;

public class OffsetLLB24Builder {

private OffsetLLB24Builder() {
throw new UnsupportedOperationException();
}

public static OffsetLL_B24 offsetLLB24(BigDecimal offset) {
return new OffsetLL_B24(offset.scaleByPowerOfTen(7).intValue());
public static int offsetLLB24(BigDecimal offset) {
return offset.scaleByPowerOfTen(7).intValue();
}

}
Loading

0 comments on commit 7dfda41

Please sign in to comment.