|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaito.browsing.fileexport.PajekFormat
public class PajekFormat
A FileFormat implementation for simple Pajek .net graphs Uses the Resource IDs as the names in the Vertex list.
Constructor Summary | |
---|---|
PajekFormat()
|
Method Summary | |
---|---|
void |
setRelations(ResourceRelation[] relations)
Sets the relations that are to be written to the file. |
void |
setResources(Resource[] resources)
Sets the resources that are to be written to the file. |
boolean |
writeFile(java.lang.String fileName)
Writes the data set by setResources and setRelations to a file that's in Pajek .net format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PajekFormat()
Method Detail |
---|
public void setResources(Resource[] resources)
setResources
in interface FileFormat
resources
- The resources that are to be written to the file. The
possible previous set will be replaced.public void setRelations(ResourceRelation[] relations)
setRelations
in interface FileFormat
relations
- The relations that are to be written to the file. The
possible previous set will be replaced.public boolean writeFile(java.lang.String fileName)
writeFile
in interface FileFormat
filename
- the full path and name of the file to write the data to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |