public class Configuration extends Object
This class can be passed as a parameter to
GraphModel.Factory.newInstance(org.gephi.graph.api.Configuration)
to
create a GraphModel with custom configuration.
Note that setting configurations after the GraphModel has been created won't have any effect.
By default, both node and edge id types are String.class
and the
time representation is TIMESTAMP
.
GraphModel
Constructor and Description |
---|
Configuration()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
copy()
Copy this configuration.
|
boolean |
equals(Object obj) |
Class |
getEdgeIdType()
Returns the edge id type.
|
Class |
getEdgeLabelType()
Returns the edge label type.
|
Class |
getEdgeWeightType()
Returns the edge weight type.
|
Class |
getNodeIdType()
Returns the node id type.
|
TimeRepresentation |
getTimeRepresentation()
Returns the time representation.
|
int |
hashCode() |
void |
setEdgeIdType(Class edgeIdType)
Sets the edge id type.
|
void |
setEdgeLabelType(Class edgeLabelType)
Sets the edge label type.
|
void |
setEdgeWeightType(Class edgeWeightType)
Sets the edge weight type.
|
void |
setNodeIdType(Class nodeIdType)
Sets the node id type.
|
void |
setTimeRepresentation(TimeRepresentation timeRepresentation)
Sets the time representation.
|
public Class getNodeIdType()
public void setNodeIdType(Class nodeIdType)
Only simple types such as primitives, wrappers and String are supported.
nodeIdType
- node id typeIllegalArgumentException
- if the type isn't supportedpublic Class getEdgeIdType()
public void setEdgeIdType(Class edgeIdType)
Only simple types such as primitives, wrappers and String are supported.
edgeIdType
- edge id typeIllegalArgumentException
- if the type isn't supportedpublic Class getEdgeLabelType()
public void setEdgeLabelType(Class edgeLabelType)
edgeLabelType
- edge label typeIllegalArgumentException
- if the type isn't supportedpublic Class getEdgeWeightType()
public void setEdgeWeightType(Class edgeWeightType)
edgeWeightType
- edge weight typeIllegalArgumentException
- if the type isn't supportedpublic TimeRepresentation getTimeRepresentation()
public void setTimeRepresentation(TimeRepresentation timeRepresentation)
timeRepresentation
- time representationpublic Configuration copy()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.