|
@@ -36,7 +36,7 @@ public class HolonSwitch extends AbstractCpsObject implements IGraphedElement {
|
|
|
* electricity), else false
|
|
|
*/
|
|
|
@Expose
|
|
|
- boolean autoActive;
|
|
|
+ private boolean autoActive;
|
|
|
|
|
|
/*
|
|
|
* true if switch has to be used manually
|
|
@@ -139,7 +139,7 @@ public class HolonSwitch extends AbstractCpsObject implements IGraphedElement {
|
|
|
*
|
|
|
* @return boolean the State
|
|
|
*/
|
|
|
- public boolean getState() {
|
|
|
+ public boolean getState() {//TODO: not really necessary
|
|
|
if (manualMode) {
|
|
|
return this.manualActive;
|
|
|
} else {
|
|
@@ -165,7 +165,7 @@ public class HolonSwitch extends AbstractCpsObject implements IGraphedElement {
|
|
|
* @param state
|
|
|
* the State
|
|
|
*/
|
|
|
- public void setAutoState(boolean state) {
|
|
|
+ public void setAutoState(boolean state) {//TODO: This should probably not be public
|
|
|
this.autoActive = state;
|
|
|
setImage();
|
|
|
}
|