Skip to content

Commit

Permalink
Changed enumerated getters / setters by adding its type.
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinto committed Jan 17, 2015
1 parent 052f28e commit 309fff9
Show file tree
Hide file tree
Showing 89 changed files with 1,208 additions and 237 deletions.
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/AcousticOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ public OP getOp() {
}
}

public String getOpStr() {
return getString("op");
}

public short getOpVal() {
return (short) getInteger("op");
}

/**
* @param op Operation (enumerated)
*/
Expand All @@ -144,15 +152,15 @@ public AcousticOperation setOp(OP op) {
/**
* @param op Operation (as a String)
*/
public AcousticOperation setOp(String op) {
public AcousticOperation setOpStr(String op) {
setValue("op", op);
return this;
}

/**
* @param op Operation (integer value)
*/
public AcousticOperation setOp(short op) {
public AcousticOperation setOpVal(short op) {
setValue("op", op);
return this;
}
Expand Down
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/AlignmentState.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ public STATE getState() {
}
}

public String getStateStr() {
return getString("state");
}

public short getStateVal() {
return (short) getInteger("state");
}

/**
* @param state State (enumerated)
*/
Expand All @@ -125,15 +133,15 @@ public AlignmentState setState(STATE state) {
/**
* @param state State (as a String)
*/
public AlignmentState setState(String state) {
public AlignmentState setStateStr(String state) {
setValue("state", state);
return this;
}

/**
* @param state State (integer value)
*/
public AlignmentState setState(short state) {
public AlignmentState setStateVal(short state) {
setValue("state", state);
return this;
}
Expand Down
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/Announce.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ public SYS_TYPE getSysType() {
}
}

public String getSysTypeStr() {
return getString("sys_type");
}

public short getSysTypeVal() {
return (short) getInteger("sys_type");
}

/**
* @param sys_type System Type (enumerated)
*/
Expand All @@ -154,15 +162,15 @@ public Announce setSysType(SYS_TYPE sys_type) {
/**
* @param sys_type System Type (as a String)
*/
public Announce setSysType(String sys_type) {
public Announce setSysTypeStr(String sys_type) {
setValue("sys_type", sys_type);
return this;
}

/**
* @param sys_type System Type (integer value)
*/
public Announce setSysType(short sys_type) {
public Announce setSysTypeVal(short sys_type) {
setValue("sys_type", sys_type);
return this;
}
Expand Down
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/AutopilotMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ public AUTONOMY getAutonomy() {
}
}

public String getAutonomyStr() {
return getString("autonomy");
}

public short getAutonomyVal() {
return (short) getInteger("autonomy");
}

/**
* @param autonomy Autonomy Level (enumerated)
*/
Expand All @@ -127,15 +135,15 @@ public AutopilotMode setAutonomy(AUTONOMY autonomy) {
/**
* @param autonomy Autonomy Level (as a String)
*/
public AutopilotMode setAutonomy(String autonomy) {
public AutopilotMode setAutonomyStr(String autonomy) {
setValue("autonomy", autonomy);
return this;
}

/**
* @param autonomy Autonomy Level (integer value)
*/
public AutopilotMode setAutonomy(short autonomy) {
public AutopilotMode setAutonomyVal(short autonomy) {
setValue("autonomy", autonomy);
return this;
}
Expand Down
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/Brake.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ public OP getOp() {
}
}

public String getOpStr() {
return getString("op");
}

public short getOpVal() {
return (short) getInteger("op");
}

/**
* @param op Operation (enumerated)
*/
Expand All @@ -124,15 +132,15 @@ public Brake setOp(OP op) {
/**
* @param op Operation (as a String)
*/
public Brake setOp(String op) {
public Brake setOpStr(String op) {
setValue("op", op);
return this;
}

/**
* @param op Operation (integer value)
*/
public Brake setOp(short op) {
public Brake setOpVal(short op) {
setValue("op", op);
return this;
}
Expand Down
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/CacheControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ public OP getOp() {
}
}

public String getOpStr() {
return getString("op");
}

public short getOpVal() {
return (short) getInteger("op");
}

/**
* @param op Control Operation (enumerated)
*/
Expand All @@ -131,15 +139,15 @@ public CacheControl setOp(OP op) {
/**
* @param op Control Operation (as a String)
*/
public CacheControl setOp(String op) {
public CacheControl setOpStr(String op) {
setValue("op", op);
return this;
}

/**
* @param op Control Operation (integer value)
*/
public CacheControl setOp(short op) {
public CacheControl setOpVal(short op) {
setValue("op", op);
return this;
}
Expand Down
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/CameraZoom.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ public ACTION getAction() {
}
}

public String getActionStr() {
return getString("action");
}

public short getActionVal() {
return (short) getInteger("action");
}

/**
* @param action Action (enumerated)
*/
Expand All @@ -158,15 +166,15 @@ public CameraZoom setAction(ACTION action) {
/**
* @param action Action (as a String)
*/
public CameraZoom setAction(String action) {
public CameraZoom setActionStr(String action) {
setValue("action", action);
return this;
}

/**
* @param action Action (integer value)
*/
public CameraZoom setAction(short action) {
public CameraZoom setActionVal(short action) {
setValue("action", action);
return this;
}
Expand Down
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/CcuEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ public TYPE getType() {
}
}

public String getTypeStr() {
return getString("type");
}

public short getTypeVal() {
return (short) getInteger("type");
}

/**
* @param type Event Type (enumerated)
*/
Expand All @@ -135,15 +143,15 @@ public CcuEvent setType(TYPE type) {
/**
* @param type Event Type (as a String)
*/
public CcuEvent setType(String type) {
public CcuEvent setTypeStr(String type) {
setValue("type", type);
return this;
}

/**
* @param type Event Type (integer value)
*/
public CcuEvent setType(short type) {
public CcuEvent setTypeVal(short type) {
setValue("type", type);
return this;
}
Expand Down
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/ClockControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ public OP getOp() {
}
}

public String getOpStr() {
return getString("op");
}

public short getOpVal() {
return (short) getInteger("op");
}

/**
* @param op Operation (enumerated)
*/
Expand All @@ -130,15 +138,15 @@ public ClockControl setOp(OP op) {
/**
* @param op Operation (as a String)
*/
public ClockControl setOp(String op) {
public ClockControl setOpStr(String op) {
setValue("op", op);
return this;
}

/**
* @param op Operation (integer value)
*/
public ClockControl setOp(short op) {
public ClockControl setOpVal(short op) {
setValue("op", op);
return this;
}
Expand Down
12 changes: 10 additions & 2 deletions src-generated/pt/lsts/imc/CommsRelay.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ public SPEED_UNITS getSpeedUnits() {
}
}

public String getSpeedUnitsStr() {
return getString("speed_units");
}

public short getSpeedUnitsVal() {
return (short) getInteger("speed_units");
}

/**
* @param speed_units Speed Units (enumerated)
*/
Expand All @@ -179,15 +187,15 @@ public CommsRelay setSpeedUnits(SPEED_UNITS speed_units) {
/**
* @param speed_units Speed Units (as a String)
*/
public CommsRelay setSpeedUnits(String speed_units) {
public CommsRelay setSpeedUnitsStr(String speed_units) {
setValue("speed_units", speed_units);
return this;
}

/**
* @param speed_units Speed Units (integer value)
*/
public CommsRelay setSpeedUnits(short speed_units) {
public CommsRelay setSpeedUnitsVal(short speed_units) {
setValue("speed_units", speed_units);
return this;
}
Expand Down
Loading

0 comments on commit 309fff9

Please sign in to comment.