public interface CySessionManager
CySession
object suitable
for serialization. Likewise, setting a new session will replace
the current session with a new one.Module: session-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>session-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
CySession |
getCurrentSession()
This method returns a
CySession object describing the current
state of Cytoscape. |
String |
getCurrentSessionFileName()
Returns the name of the current session file.
|
void |
setCurrentSession(CySession session,
String fileName)
This method allows a new session to be set and in doing
so erases and overrides the current session!
|
CySession getCurrentSession()
CySession
object describing the current
state of Cytoscape. The object returned is meant to
be used for serialization and is not meant to be used interactively
to track the state of Cytsocape.void setCurrentSession(CySession session, String fileName)
session
- The new session to be applied to Cytoscape.fileName
- The name of the file representing the new session.String getCurrentSessionFileName()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.