Skip to content

Commit

Permalink
Release update
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralenkar committed Aug 16, 2020
1 parent 7ee9182 commit df3ae31
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 34 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>gems.ic.uff.br</groupId>
<artifactId>prov-matrix</artifactId>
<packaging>jar</packaging>
<version>1.6</version>
<version>1.7</version>
<name>prov-matrix</name>
<url>http://maven.apache.org</url>
<properties>
Expand Down
72 changes: 39 additions & 33 deletions src/main/java/convertion/ProvMatrixDefaultFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,19 +454,21 @@ public void buildAgentTypes() {
this.agentInstanceOf = new AgentInstance(new ArrayList<String>(this.agents), new HashSet<String>());
for (String key : agents) {
String value = agentTypes.get(key);
if (value != null && value.contains("::") && !value.endsWith("::")) {
String[] values = value.split("::");
for (int i = 0; i < values.length; i++) {
if (!agentInstanceOf.getDestinationTypeAgentsId().contains(values[i])) {
agentInstanceOf.getDestinationTypeAgentsId().add(values[i]);
if (value != null) {
if (value.contains("::") && !value.endsWith("::")) {
String[] values = value.split("::");
for (int i = 0; i < values.length; i++) {
if (!agentInstanceOf.getDestinationTypeAgentsId().contains(values[i])) {
agentInstanceOf.getDestinationTypeAgentsId().add(values[i]);
}
this.agentInstanceOf.add(key, values[i]);
}
this.agentInstanceOf.add(key, values[i]);
}
} else {
if (!agentInstanceOf.getDestinationTypeAgentsId().contains(value)) {
agentInstanceOf.getDestinationTypeAgentsId().add(value);
} else {
if (!agentInstanceOf.getDestinationTypeAgentsId().contains(value)) {
agentInstanceOf.getDestinationTypeAgentsId().add(value);
}
this.agentInstanceOf.add(key, value);
}
this.agentInstanceOf.add(key, value);
}
}
}
Expand All @@ -478,19 +480,21 @@ public void buildActivityTypes() {
new HashSet<String>());
for (String key : activities) {
String value = activityTypes.get(key);
if (value != null && value.contains("::") && !value.endsWith("::")) {
String[] values = value.split("::");
for (int i = 0; i < values.length; i++) {
if (!activityInstanceOf.getDestinationTypeActivitiesId().contains(values[i])) {
activityInstanceOf.getDestinationTypeActivitiesId().add(values[i]);
if (value != null) {
if (value.contains("::") && !value.endsWith("::")) {
String[] values = value.split("::");
for (int i = 0; i < values.length; i++) {
if (!activityInstanceOf.getDestinationTypeActivitiesId().contains(values[i])) {
activityInstanceOf.getDestinationTypeActivitiesId().add(values[i]);
}
this.activityInstanceOf.add(key, values[i]);
}
this.activityInstanceOf.add(key, values[i]);
}
} else {
if (!activityInstanceOf.getDestinationTypeActivitiesId().contains(value)) {
activityInstanceOf.getDestinationTypeActivitiesId().add(value);
} else {
if (!activityInstanceOf.getDestinationTypeActivitiesId().contains(value)) {
activityInstanceOf.getDestinationTypeActivitiesId().add(value);
}
this.activityInstanceOf.add(key, value);
}
this.activityInstanceOf.add(key, value);
}
}
}
Expand All @@ -501,19 +505,21 @@ public void buildEntityTypes() {
this.entityInstanceOf = new EntityInstance(new ArrayList<String>(this.entities), new HashSet<String>());
for (String key : entities) {
String value = entityTypes.get(key);
if (value != null && value.contains("::") && !value.endsWith("::")) {
String[] values = value.split("::");
for (int i = 0; i < values.length; i++) {
if (!entityInstanceOf.getDestinationTypeEntitiesId().contains(values[i])) {
entityInstanceOf.getDestinationTypeEntitiesId().add(values[i]);
if (value != null) {
if (value.contains("::") && !value.endsWith("::")) {
String[] values = value.split("::");
for (int i = 0; i < values.length; i++) {
if (!entityInstanceOf.getDestinationTypeEntitiesId().contains(values[i])) {
entityInstanceOf.getDestinationTypeEntitiesId().add(values[i]);
}
this.entityInstanceOf.add(key, values[i]);
}
this.entityInstanceOf.add(key, values[i]);
}
} else {
if (!entityInstanceOf.getDestinationTypeEntitiesId().contains(value)) {
entityInstanceOf.getDestinationTypeEntitiesId().add(value);
} else {
if (!entityInstanceOf.getDestinationTypeEntitiesId().contains(value)) {
entityInstanceOf.getDestinationTypeEntitiesId().add(value);
}
this.entityInstanceOf.add(key, value);
}
this.entityInstanceOf.add(key, value);
}
}
}
Expand Down

0 comments on commit df3ae31

Please sign in to comment.