Commit 6fb7774b authored by Markus Georg Bendel's avatar Markus Georg Bendel
Browse files

Update SomeIPConnectionSymbol

parent dd8a58ca
Pipeline #156911 failed with stage
in 1 minute and 47 seconds
...@@ -13,53 +13,45 @@ public class SomeIPConnectionSymbol extends MiddlewareSymbol { ...@@ -13,53 +13,45 @@ public class SomeIPConnectionSymbol extends MiddlewareSymbol {
super(KIND, Optional.empty(), Optional.empty(), Optional.empty()); super(KIND, Optional.empty(), Optional.empty(), Optional.empty());
} }
public SomeIPConnectionSymbol(String id) { public SomeIPConnectionSymbol(int serviceID, int instanceID){
this(KIND, id);
}
public SomeIPConnectionSymbol(SomeIPConnectionKind kind, String id) {
super(kind, Optional.ofNullable(id));
}
public SomeIPConnectionSymbol(String serviceID, String instanceID){
this(KIND, serviceID, instanceID); this(KIND, serviceID, instanceID);
} }
public SomeIPConnectionSymbol(String serviceID, String instanceID, String eventgroupID) { public SomeIPConnectionSymbol(int serviceID, int instanceID, int eventgroupID) {
this(KIND, serviceID, instanceID, eventgroupID); this(KIND, serviceID, instanceID, eventgroupID);
} }
protected SomeIPConnectionSymbol(SomeIPConnectionKind kind, String serviceID, String instanceID, String eventgroupID) { protected SomeIPConnectionSymbol(SomeIPConnectionKind kind, int serviceID, int instanceID, int eventgroupID) {
super(kind, Optional.ofNullable(serviceID), Optional.ofNullable(instanceID), Optional.ofNullable(eventgroupID)); super(kind, Optional.ofNullable(serviceID), Optional.ofNullable(instanceID), Optional.ofNullable(eventgroupID));
} }
@Override @Override
public String toString() { public String toString() {
return String.format("SomeIPConnection = %s, %s, %s", return String.format("SomeIPConnection = %d, %d, %d",
getserviceID(), getinstanceID(), geteventgroupID()); getserviceID(), getinstanceID(), geteventgroupID());
} }
public Optional<String> getserviceID() { public Optional<Integer> getserviceID() {
return getValue(0); return getValue(0);
} }
public Optional<String> getinstanceID() { public Optional<Integer> getinstanceID() {
return getValue(1); return getValue(1);
} }
public Optional<String> geteventgroupID() { public Optional<Integer> geteventgroupID() {
return getValue(2); return getValue(2);
} }
public void setserviceID(String serviceID) { public void setserviceID(int serviceID) {
this.values.set(0, Optional.ofNullable(serviceID)); this.values.set(0, Optional.ofNullable(serviceID));
} }
public void setinstanceID(String instanceID) { public void setinstanceID(int instanceID) {
this.values.set(1, Optional.ofNullable(instanceID)); this.values.set(1, Optional.ofNullable(instanceID));
} }
public void seteventgroupID(String eventgroupID) { public void seteventgroupID(int eventgroupID) {
this.values.set(2, Optional.ofNullable(eventgroupID)); this.values.set(2, Optional.ofNullable(eventgroupID));
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment