Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gs-gama
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
graphstream
gs-gama
Commits
94d0cab6
Commit
94d0cab6
authored
Feb 06, 2014
by
Thibaut Démare
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test of received attributes
parent
de270513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
src-java-test/org/graphstream/gama/tests/SimpleSinkAdapter.java
...va-test/org/graphstream/gama/tests/SimpleSinkAdapter.java
+22
-3
No files found.
src-java-test/org/graphstream/gama/tests/SimpleSinkAdapter.java
View file @
94d0cab6
...
...
@@ -22,14 +22,33 @@ public class SimpleSinkAdapter extends SinkAdapter {
System
.
out
.
println
(
"Edges attributes :"
);
for
(
Edge
e
:
graph
.
getEachEdge
()){
for
(
Object
o
:
e
.
getAttributeKeySet
()){
System
.
out
.
println
(
e
.
getAttribute
((
String
)
o
).
getClass
()
+
" et value = "
+
e
.
getAttribute
((
String
)
o
));
System
.
out
.
println
(
e
.
getAttribute
((
String
)
o
).
getClass
());
if
(
e
.
getAttribute
((
String
)
o
).
getClass
().
isArray
()){
Object
[]
array
=
(
Object
[])
e
.
getAttribute
((
String
)
o
);
System
.
out
.
print
(
'\t'
);
for
(
Object
ob
:
array
)
System
.
out
.
print
(
ob
);
System
.
out
.
println
();
}
else
{
System
.
out
.
println
(
"\tvalue = "
+
e
.
getAttribute
((
String
)
o
));
}
}
}
System
.
out
.
println
(
"Nodes attributes :"
);
for
(
Node
e
:
graph
.
getEachNode
()){
for
(
Object
o
:
e
.
getAttributeKeySet
()){
System
.
out
.
println
(
e
.
getAttribute
((
String
)
o
).
getClass
()
+
" et value = "
+
e
.
getAttribute
((
String
)
o
));
}
System
.
out
.
println
(
e
.
getAttribute
((
String
)
o
).
getClass
());
if
(
e
.
getAttribute
((
String
)
o
).
getClass
().
isArray
()){
Object
[]
array
=
(
Object
[])
e
.
getAttribute
((
String
)
o
);
System
.
out
.
print
(
'\t'
);
for
(
Object
ob
:
array
)
System
.
out
.
print
(
ob
);
System
.
out
.
println
();
}
else
{
System
.
out
.
println
(
"\tvalue = "
+
e
.
getAttribute
((
String
)
o
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment