3import java.lang.reflect.Type;
4import java.util.ArrayList;
5import java.util.HashSet;
9import com.google.gson.JsonElement;
10import com.google.gson.JsonSerializationContext;
11import com.google.gson.JsonSerializer;
47 StringBuilder sb =
new StringBuilder();
48 sb.append(
"SymmetricAPs [");
49 for (
int i=0; i<this.size(); i++)
51 sb.append(this.
get(i).getID());
52 if (i<(this.size()-1))
91 Set<SymmetricAPs> result =
new HashSet<SymmetricAPs>();
110 if (this.size()!=other.size())
112 for (
int i=0; i<this.size(); i++)
114 if (!this.
get(i).sameAs(other.get(i)))
123 implements JsonSerializer<SymmetricAPs>
127 JsonSerializationContext context)
129 List<Integer> ids =
new ArrayList<Integer>();
134 return context.serialize(ids);
An attachment point (AP) is a possibility to attach a Vertex onto the vertex holding the AP (i....
JsonElement serialize(SymmetricAPs list, Type typeOfSrc, JsonSerializationContext context)
A collection of AttachmentPoints that are related by a relation that we call "symmetry",...
SymmetricAPs getSameAs(Set< SymmetricAPs > others)
Identifies a set of symmetric APs that, although it contains references to different instances of Att...
SymmetricAPs(List< AttachmentPoint > symAPs)
Set< SymmetricAPs > getAllSameAs(Set< SymmetricAPs > others)
Identifies any set of symmetric APs that, although it contains references to different instances of A...
static final long serialVersionUID
Version ID.
boolean sameAs(SymmetricAPs other)
Checks if this collection SymmetricAPs is analogous to the other one, i.e., they contain AttachmentPo...
Class representing a list of references pointing to instances that are related by some conventional c...