[feat] added getter/setter for 'AutoRadialOffset' to PodSet

This commit is contained in:
Daniel_M_Williams 2017-05-29 13:35:05 -04:00
parent 95a927b3b7
commit 64be463b48

View File

@ -17,6 +17,7 @@ public class PodSet extends ComponentAssembly implements RingInstanceable {
protected double angularSeparation = Math.PI; protected double angularSeparation = Math.PI;
protected double angularPosition_rad = 0; protected double angularPosition_rad = 0;
protected boolean autoRadialPosition = false;
protected double radialPosition_m = 0; protected double radialPosition_m = 0;
public PodSet() { public PodSet() {
@ -175,18 +176,21 @@ public class PodSet extends ComponentAssembly implements RingInstanceable {
return (this.getInstanceCount() + "-ring"); return (this.getInstanceCount() + "-ring");
} }
@Override
public boolean getAutoRadialOffset(){
return this.autoRadialPosition;
}
public void setAutoRadialOffset( final boolean enabled ){
this.autoRadialPosition = enabled;
fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE);
}
@Override @Override
public double getRadialOffset() { public double getRadialOffset() {
return this.radialPosition_m; return this.radialPosition_m;
} }
@Override
public boolean getAutoRadialOffset(){
return false;
}
@Override @Override
public int getInstanceCount() { public int getInstanceCount() {
return this.count; return this.count;