Class Story
java.lang.Object
org.episteme.social.philosophy.storytelling.Story
- All Implemented Interfaces:
Serializable, Graph<Event>, Commented, ComprehensiveIdentification, Identified<Identification>, Named
A class representing a continuous and logical flow of events as a graph G = (V, E).
This structure stores narrative scripts where events are vertices and causal/timed
links are edges.
Modernized to implement ComprehensiveIdentification and support dynamic traits and consistent identity.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Graph
Graph.Edge<V> -
Constructor Summary
ConstructorsConstructorDescriptionStory()Creates a new Story graph with a generated ID.Story(Identification id) Creates a new Story graph with a specific ID. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds an edge between two vertices.voidAdds an event to the story.booleanAdds a vertex to the graph.intReturns the degree (number of edges) of a vertex.edges()Returns all edges in this graph.booleangetId()Returns the unique identifier of this entity.Returns the traits map for this entity.inthashCode()booleanChecks if this graph is directed.Returns neighbors of a vertex.Infers new events based on causal links starting from a specific event.toString()intReturns the number of vertices in the graph.vertices()Returns all vertices in this graph.Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Story
public Story()Creates a new Story graph with a generated ID. -
Story
Creates a new Story graph with a specific ID.
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
vertices
-
edges
-
vertexCount
public int vertexCount()Description copied from interface:GraphReturns the number of vertices in the graph.- Specified by:
vertexCountin interfaceGraph<Event>- Returns:
- the number of vertices
-
addVertex
-
addEdge
-
neighbors
-
degree
-
isDirected
public boolean isDirected()Description copied from interface:GraphChecks if this graph is directed.- Specified by:
isDirectedin interfaceGraph<Event>- Returns:
- true if directed, false if undirected
-
addEvent
-
solve
-
equals
-
hashCode
-
toString
-