Serialized Form
-
Package com.github.yellowstonegames.path
-
Class com.github.yellowstonegames.path.CostlyGraph
class CostlyGraph extends DirectedGraph<com.github.yellowstonegames.grid.Coord> implements Externalizable-
Serialization Methods
-
readExternal
Meant for deserialization using Fory. If a class overrides this with different behavior,CostlyGraph.writeExternal(ObjectOutput)must also be overridden to match that behavior.- Parameters:
in- the stream to read data from in order to restore the object- Throws:
IOException- if I/O errors occurClassNotFoundException- If the class for an object being restored cannot be found.
-
writeExternal
Meant for serialization using Fory. If a class overrides this with different behavior,CostlyGraph.readExternal(ObjectInput)must also be overridden to match that behavior.- Serial Data:
- int width: the x-size of the grid the graph uses
- int height: the y-size of the grid the graph uses
- int nv: the number of vertices
- object[nv] vertices: a sequence of vertex objects, with count equal to nv
- int ne: the number of edges
- triple[ne] edges: interleaved in a flat sequence; for each triple:
- object vertexA
- object vertexB
- float weight
- Parameters:
out- the stream to write the object to- Throws:
IOException- Includes any I/O exceptions that may occur
-
-
-
Class com.github.yellowstonegames.path.DefaultGraph
class DefaultGraph extends UndirectedGraph<com.github.yellowstonegames.grid.Coord> implements Externalizable-
Serialization Methods
-
readExternal
Meant for deserialization using Fory. If a class overrides this with different behavior,DefaultGraph.writeExternal(ObjectOutput)must also be overridden to match that behavior.- Parameters:
in- the stream to read data from in order to restore the object- Throws:
IOException- if I/O errors occurClassNotFoundException- If the class for an object being restored cannot be found.
-
writeExternal
Meant for serialization using Fory. If a class overrides this with different behavior,DefaultGraph.readExternal(ObjectInput)must also be overridden to match that behavior.- Serial Data:
- int width: the x-size of the grid the graph uses
- int height: the y-size of the grid the graph uses
- int nv: the number of vertices
- object[nv] vertices: a sequence of vertex objects, with count equal to nv
- int ne: the number of edges
- triple[ne] edges: interleaved in a flat sequence; for each triple:
- object vertexA
- object vertexB
- float weight
- Parameters:
out- the stream to write the object to- Throws:
IOException- Includes any I/O exceptions that may occur
-
-
-
Class com.github.yellowstonegames.path.DirectedGraph
-
Serialization Methods
-
readExternal
Meant for deserialization using Fory. If a class overrides this with different behavior,Graph.writeExternal(ObjectOutput)must also be overridden to match that behavior.- Parameters:
in- the stream to read data from in order to restore the object- Throws:
IOException- if I/O errors occurClassNotFoundException- If the class for an object being restored cannot be found.
-
writeExternal
Meant for serialization using Fory. If a class overrides this with different behavior,Graph.readExternal(ObjectInput)must also be overridden to match that behavior.- Serial Data:
- int nv: the number of vertices
- object[nv] vertices: a sequence of vertex objects, with count equal to nv
- int ne: the number of edges
- triple[ne] edges: interleaved in a flat sequence; for each triple:
- object vertexA
- object vertexB
- float weight
- Parameters:
out- the stream to write the object to- Throws:
IOException- Includes any I/O exceptions that may occur
-
-
-
Class com.github.yellowstonegames.path.Graph
class Graph extends Object implements Externalizable-
Serialization Methods
-
readExternal
Meant for deserialization using Fory. If a class overrides this with different behavior,Graph.writeExternal(ObjectOutput)must also be overridden to match that behavior.- Parameters:
in- the stream to read data from in order to restore the object- Throws:
IOException- if I/O errors occurClassNotFoundException- If the class for an object being restored cannot be found.
-
writeExternal
Meant for serialization using Fory. If a class overrides this with different behavior,Graph.readExternal(ObjectInput)must also be overridden to match that behavior.- Serial Data:
- int nv: the number of vertices
- object[nv] vertices: a sequence of vertex objects, with count equal to nv
- int ne: the number of edges
- triple[ne] edges: interleaved in a flat sequence; for each triple:
- object vertexA
- object vertexB
- float weight
- Parameters:
out- the stream to write the object to- Throws:
IOException- Includes any I/O exceptions that may occur
-
-
-
Class com.github.yellowstonegames.path.UndirectedGraph
-
Serialization Methods
-
readExternal
Meant for deserialization using Fory. If a class overrides this with different behavior,Graph.writeExternal(ObjectOutput)must also be overridden to match that behavior.- Parameters:
in- the stream to read data from in order to restore the object- Throws:
IOException- if I/O errors occurClassNotFoundException- If the class for an object being restored cannot be found.
-
writeExternal
Meant for serialization using Fory. If a class overrides this with different behavior,Graph.readExternal(ObjectInput)must also be overridden to match that behavior.- Serial Data:
- int nv: the number of vertices
- object[nv] vertices: a sequence of vertex objects, with count equal to nv
- int ne: the number of edges
- triple[ne] edges: interleaved in a flat sequence; for each triple:
- object vertexA
- object vertexB
- float weight
- Parameters:
out- the stream to write the object to- Throws:
IOException- Includes any I/O exceptions that may occur
-
-
-