Data Model in Java

From SONIVIS:Wiki

Jump to: navigation, search

This article is dedicated to describe the representation of the Data Model in Java.

Contents

Class Diagram

Class diagram of the core of the data model

The image shows the core classes of the data model and how they are related. The methods of each class were left out for clarity.

Javadoc API

The automatically generated, always up-to-date Javadocs give a well-known view on the classes. The implementation of the model can be found in the package de.sonivis.tool.core.datamodel.

Data Model Core Classes

Class InfoSpace

public class InfoSpace implements IMeasurable
private actorContentElementRelations: Set<IActorContentElementRelation>
private static final transient logger: org.slf4j.Logger
private actors: Set<IActor>
private contentElements: Set<IContentElement>
private contextRelations: Set<IContextRelation>
private created: Date
private description: String
private extractorFQN: String
private graphs: Set<Graph>
private interactionRelations: Set<IInteractionRelation>
private name: String
private serialId: Long
InfoSpace(): 
public InfoSpace(String,String): 
public InfoSpace(String,String,Date,String): 
public add(Graph): void
public add(IInfoSpaceItem): void
public addGraphs(Set<Graph>): void
public addMultiple(Set<IInfoSpaceItem>): void
public delete(Graph): void
public delete(IInfoSpaceItem): void
public deleteGraphs(Set<Graph>): void
public deleteMultiple(Set<IInfoSpaceItem>): void
public equals(Object): boolean
public generateGraphs(): void
public getActorContentElementRelations(): Set<IActorContentElementRelation>
public getActorContentElementRelationsNonLazy(): Set<IActorContentElementRelation>
public getActors(): Set<IActor>
public getExtractorFQN(): String
public getContentElements(): Set<IContentElement>
public getContextRelations(): Set<IContextRelation>
public getCreated(): Date
public getDescription(): String
public getGraphs(): Set<Graph>
public getInteractionRelations(): Set<IInteractionRelation>
public getName(): String
public getSerialId(): Long
public hashCode(): int
private setActors(Set<IActor>): void
private setExtractorFQN(String): void
private setContentElements(Set<IContentElement>): void
private setContextRelations(Set<IContextRelation>): void
private setDescription(String): void
private setGraphs(Set<Graph>): void
private setInteractionRelations(Set<IInteractionRelation>): void
private setActorContentElementRelations(Set<IActorContentElementRelation>): void
private setName(String): void
private setSerialId(Long): void

Abstract Class InfoSpaceItem

Detailed class diagram of the InfoSpaceItem class (without extending classes)
public abstract class InfoSpaceItem implements IInfoSpaceItem, IMeasurable
private static final transient logger: org.slf4j.Logger
private infoSpace: InfoSpace
private properties: Map<String,InfoSpaceItemProperty<?>>
private representations: Set<GraphComponent>
private serialId: Long
private type: Class<?>
InfoSpaceItem(): 
protected InfoSpaceItem(InfoSpace): 
protected InfoSpaceItem(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>): 
public addProperties(Collection<InfoSpaceItemProperty<?>>): void
public addProperty(InfoSpaceItemProperty<?>): void
public addRepresentation(GraphComponent): void
public addRepresentations(Set<GraphComponent>): void
public deleteProperties(Collection<InfoSpaceItemProperty<?>>): void
public deleteProperty(InfoSpaceItemProperty<?>): void
public deleteRepresentation(GraphComponent): void
public deleteRepresentations(Set<GraphComponent>): void
public equals(Object): boolean
public getInfoSpace(): InfoSpace
public getProperties(): Map<String,InfoSpaceItemProperty<?>>
public getRepresentations(): Set<GraphComponent>
public getSerialId(): Long
public getType(): Class<?>
public hashCode(): int
public hasProperty(String): boolean
public setInfoSpace(InfoSpace): void
public setProperties(Map<String,InfoSpaceItemProperty<?>>): void
public setRepresentations(Set<GraphComponent>): void
public setSerialId(Long): void
public setType(Class<?>): void

Abstract Class Actor

Detailed class diagram of the Actor class (without extending classes)
public abstract class Actor extends InfoSpaceItem implements IActor
private static final transient logger: org.slf4j.Logger
private externalId: Long
private name: String
private registered: Date
protected Actor(): 
public Actor(InfoSpace,String,Date): 
public Actor(InfoSpace,Long,String,Date): 
public Actor(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,Long,String,Date): 
public equals(Object): boolean
public getExternalId(): Long
public getName(): String
public getRegistered(): Date
public hashCode(): int
public setExternalId(Long): void
public setName(String): void
public setRegistered(Date): void

Abstract Class ContentElement

Detailed class diagram of the ContentElement class (without extending classes)
public abstract class ContentElement extends InfoSpaceItem implements IContentElement
private static final transient logger: org.slf4j.Logger
private created: Date
private externalId: Long
private title: String
private structure: Structure
private text: String
protected ContentElement(): 
public ContentElement(InfoSpace,String,Structure): 
public ContentElement(InfoSpace,Long,String,Structure): 
public ContentElement(InfoSpace,String,Collection<InfoSpaceItemProperty<?>>,Structure): 
public ContentElement(InfoSpace,Long,String,Date,Structure): 
public ContentElement(InfoSpace,Long,String,String,Date,Structure): 
public ContentElement(InfoSpaceCollection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,Long,String,String,Date,Structure): 
public equals(Object): boolean
public getCreated(): Date
public getExternalId(): Long
public getStructure(): Structure
public getText(): String
public getTitle(): String
public hashCode(): int
public setCreated(Date): void
public setExternalId(Long): void
public setStructure(Structure): void
public setText(String): void
public setTitle(String): void

Abstract Class ContextRelation

Detailed class diagram of the ContextRelation class (without extending classes)
public abstract class ContextRelation<S extends IContentElement,T extends IContentElement> extends InfoSpaceItem implements IContextRelation<S,T>
private static final transient logger: org.slf4j.Logger
protected established: Date
protected source: S
protected target: T
protected ContextRelation(): 
public ContextRelation(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,S,T): 
public ContextRelation(InfoSpace,S,T): 
public equals(Object): boolean
public getEstablished(): Date
public getSource(): S
public getTarget(): T
public hashCode(): int
public setEstablished(Date): void

Abstract Class InteractionRelation

Detailed class diagram of the InteractionRelation class (without extending classes)
public abstract class InteractionRelation<S extends IActor,T extends IActor> extends InfoSpaceItem implements IInteractionRelation<S,T>
private static final transient logger: org.slf4j.Logger
protected established: Date
protected source: S
protected target: T
protected InteractionRelation(): 
public InteractionRelation(InfoSpace,S,T): 
public InteractionRelation(InfoSpace,S,T,Collection<InfoSpaceItemProperty<?>>): 
public InteractionRelation(InfoSpace,S,T,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>): 
public equals(Object): boolean
public getEstablished(): Date
public getSource(): S
public getTarget(): T
public hashCode(): int
public setEstablished(Date): void

Abstract Class ActorContentElementRelation

Detailed class diagram of the ActorContentElementRelation class (without extending classes)
public abstract class ActorContentElementRelation<A extends IActor,CE extends IContentElement> extends InfoSpaceItem, IActorContentElementRelation<A,CE>
private static final transient logger: org.slf4j.Logger
protected actor: A
protected contentElement: CE
protected established: Date
protected ActorContentElementRelation(): 
public ActorContentElementRelation(InfoSpace,A,CE): 
public ActorContentElementRelation(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,A,CE): 
public equals(Object): boolean
public getActor(): A
public getContentElement(): CE
public getEstablished(): Date
public hashCode(): int
public setEstablished(Date): void

Abstract Class GraphItem

public abstract class GraphItem implements de.sonivis.tool.core.metricsystem.IMeasurable
private static final transient logger: org.slf4j.Loggger
private properties: Map<String,GraphItemProperty<?>>
private serialId: Long
GraphItem(): 
protected GraphItem(Collection<GraphItemProperty<?>>): 
public addProperties(Collection<GraphItemProperty<?>>): void
public addProperty(GraphItemProperty<?>): void
public deleteProperties(Collection<GraphItemProperty<?>>): void
public deleteProperty(GraphItemProperty<?>): void
public equals(Object): boolean
public getProperties(): Map<String,GraphItemProperty<?>>
public getSerialId(): Long
public hashCode(): int
private setProperties(Map<String,GraphItemProperty<?>>): void
private setSerialId(Long): void

Class Graph

public class Graph extends GraphItem
private static logger: org.slf4j.Loggger
private infoSpace: InfoSpace
private edges: List<Edge>
private name: String
private nodes: List<Node>
Graph(): 
public Graph(InfoSpace,Collection<GraphItemProperty<?>>,String): 
public Graph(InfoSpace,String): 
public addGraphComponent(GraphComponent): void
public addGraphComponents(Collection<? extends GraphComponent>): void
public deleteGraphComponent(GraphComponent): void
public deleteGraphComponents(Collection<? extends GraphComponent>): void
public equals(Object): boolean
public getEdges(): List<Edge>
public getIndexedNodes(int): Node
public getIndexedNodes(): Node[]
public getInfoSpace(): InfoSpace
public getNodes(): List<Node>
public getName(): String
public hashCode(): int
private setEdges(List<Edge>): void
public setEdgesAndNodes(List<Edge>): void
public setIndexedNodes(int,Node): void
public setIndexedNodes(Node[]): void
setInfoSpace(InfoSpace): void
private setNodes(List<Node>): void
private setName(String): void

Abstract Class GraphComponent

public abstract class GraphComponent extends GraphItem
private static logger: org.slf4j.Loggger
private graph: Graph
GraphComponent(): 
protected GraphComponent(Graph): 
protected GraphComponent(Graph,Collection<GraphItemProperty<?>>): 
public equals(Object): boolean
public getGraph(): Graph
public hashCode(): int
setGraph(Graph): void

Class Node

public class Node extends GraphComponent
private static logger: org.slf4j.Loggger
private label: String
Node(): 
public Node(Graph,String): 
public Node(Graph,Collection<GraphItemProperty<?>>,String): 
public equals(Object): boolean
public getLabel(): String
public hashCode(): int
private setLabel(String): void

Class Edge

public class Edge extends GraphItem
private static logger: org.slf4j.Loggger
private directed: boolean
private source: Node
private target: Node
Edge(): 
public Edge(Graph,Collection<GraphItemProperty<?>>,Node,Node,boolean): 
public Edge(Graph,Node,Node): 
public Edge(Graph,Node,Node,boolean): 
public equals(Object): boolean
public getSource(): Node
public getTarget(): Node
public hashCode(): int
public isDirected(): boolean
private setDirected(boolean): void
private setSource(Node): void
private setTarget(Node): void

Abstract Class Property

public abstract class Property<ValueType extends Serializable>
private static logger: org.slf4j.Loggger
private name: String
private serialId: Long
private typeFQN: String
private value: ValueType
Property(): 
protected Property(String,Class<? extends ValueType>,ValueType): 
public equals(Object): boolean
public getName(): String
public getSerialId(): Long
public getTypeFQN(): Class<? extends ValueType>
public getValue(): ValueType
public hashCode(): int
private setName(String): void
private setSerialId(Long): void
private setTypeFQN(Class<? extends ValueType>): void
public setValue(ValueType): void

Class InfoSpaceItemProperty

public class InfoSpaceItemProperty<ValueType extends Serializable> extends Property<ValueType>
private static logger: org.slf4j.Loggger
private infoSpaceItem: InfoSpaceItem
InfoSpaceItemProperty(): 
public InfoSpaceItemProperty(String,ValueType): 
public InfoSpaceItemProperty(InfoSpaceItem,String,ValueType): 
public equals(Object): boolean
public getInfoSpaceItem(): InfoSpaceItem
public hashCode(): int
private setInfoSpaceItem(InfoSpaceItem): void

Class GraphItemProperty

public class GraphItemProperty<ValueType> extends Property<ValueType>
private static logger: org.slf4j.Logger
private graphItem: GraphItem
GraphItemProperty(): 
public GraphItemProperty(String,ValueType): 
public GraphItemProperty(GraphItem,String,ValueType): 
public equals(Object): boolean
public getGraphItem(): GraphItem
public hashCode(): int
private setGraphItem(GraphItem): void

Special Classes

Class Structure

public class Structure implements Serializable
private static final serialVersionUID: long
private structurename: String
private structurevalue: Integer
Structure(): 
public Structure(String,Integer): 
public equals(Object): boolean
public getStructurename(): String
public getStructurvalue(): Integer
public hashCode(): int
private setStructurename(String): 
private setStructurevalue(Integer): 


Data Model Core Extension Classes

The following classes extend the Data Model rather than being a real part of it. These classes are kept in the package de.sonivis.tool.core.datamodel.extension.

Data Model Core Extension Class Diagram

Simplified class diagram of the data model core extension classes (the five sub-classes of InfoSpaceItem are included for clarification (darker gray background), methods of all classes have been left out for clarity).

Class ActorAggregation

Detailed class diagram of the ActorAggregation class (without extending classes)
public class ActorAggregation extends Actor
protected ActorAggregation(): 
public ActorAggregation(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,Long,String,Date): 
public ActorAggregation(InfoSpace,Long,String,Date): 
public ActorAggregation(InfoSpace,String,Date): 

Class AggregatedBy

Detailed class diagram of the AggregatedBy class (without extending classes)
public class AggregatedBy<A extends IActor,G extends IActorAggregation> extends InteractionRelation<A,G> implements ICollaboration<A,G>
protected AggregatedBy(): 
public AggregatedBy(InfoSpace,A,G): 

Class Artificial

Detailed class diagram of the Artificial class (without extending classes)
public class Artificial extends Actor
protected Artificial(): 
public Artificial(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,Long,String,Date): 
public Artificial(InfoSpace,Long,String,Date): 
public Artificial(InfoSpace,String,Date): 

Class Created

Detailed class diagram of the Created class (without extending classes)
public class Created<A extends IActor,C extends IContentElement> extends ActorContentElementRelation<A,C> implements ICreated<A,C>
protected Created(): 
public Created(InfoSpace,A,C): 
public Created(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,A,C): 

Class Deleted

Detailed class diagram of the Deleted class (without extending classes)
public class Deleted<A extends IActor,C extends IContentElement> extends ActorContentElementRelation<A,C> implements ICreated<A,C>
protected Deleted(): 
public Deleted(InfoSpace,A,C): 
public Deleted(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,A,C): 

Class GroupedBy

Detailed class diagram of the GroupedBy class (without extending classes)
public class GroupedBy<C extends IContentElement,GE extends IGroupingElement> extends ContextRelation<C,GE> implements IGroupedBy<C,GE>
protected GroupedBy(): 
public GroupedBy(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,C,GE): 
public GroupedBy(InfoSpace,C,GE): 

Class GroupingElement

Detailed class diagram of the GroupingElement class (without extending classes)
public abstract class GroupingElement extends ContentElement implements IGroupingElement
protected GroupingElement(): 
public GroupingElement(InfoSpace,Long,String): 
public GroupingElement(InfoSpace,String): 
public GroupingElement(InfoSpace,String,Collection<InfoSpaceItemProperty<?>>): 
public abstract getLabel(): String
public toString(): String

Class Human

Detailed class diagram of the Human class (without extending classes)
public class Human extends Actor implements IHuman
protected Human(): 
public Human(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,Long,String,Date): 
public Human(InfoSpace,Long,String,Date): 
public Human(InfoSpace,String,Date): 

Class LinksTo

Detailed class diagram of the LinksToElement class (without extending classes)
public class LinksTo<S extends IContentElement,T extends IContentElement> extends Context implements ILinksTo<S,T>
protected LinksTo(): 
public LinksTo(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,S,T): 
public LinksTo(InfoSpace,S,T): 

Class MetaData

Detailed class diagram of the MetaData class (without extending classes)
public abstract class MetaData extends ContentElement implements IMetaData
protected MetaData(): 
public MetaData(InfoSpace,String): 
public MetaData(InfoSpace,String,Date): 

Class PartOf

Detailed class diagram of the PartOf class (without extending classes)
public class PartOf<S extends IContentElement,T extends IContentElement> extends Context implements IPartOf<S,T>
protected PartOf(): 
public PartOf(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,S,T): 
public PartOf(InfoSpace,S,T): 

Class Read

Detailed class diagram of the Read class (without extending classes)
public class Read<A extends IActor,C extends IContentElement> extends ActorContentElementRelation<A,C> implements IRead<A,C>
protected Read(): 
public Read(InfoSpace,A,C): 
public Read(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,A,C): 

Class Updated

Detailed class diagram of the Updated class (without extending classes)
public class Updated<A extends IActor,C extends IContentElement> extends ActorContentElementRelation<A,C> implements IUpdated<A,C>
protected Updated(): 
public Updated(InfoSpace,A,C): 
public Updated(InfoSpace,Collection<InfoSpaceItemProperty<?>>,Set<GraphComponent>,A,C): 

Links

Personal tools