Documentation ¶
Index ¶
- Constants
- Variables
- func CreateAllIndexes(nbIndexes int) ([][4]int, [12]int)
- type BaseSpacePackData
- type DistAndTime
- type EventColor
- type EventId
- type EventIfc
- type NodeEventId
- type NodeEventIfc
- type SpaceIfc
- type SpacePackDataIfc
- type SpaceTimeIfc
- type SpaceTimeLinkVisitor
- type SpaceTimeNodeIfc
- type SpaceTimeNodeVisitor
Constants ¶
View Source
const ( NilEvent = EventId(-1) MinMaxCoord = m3point.CInt(2 * 9) )
View Source
const ZeroDistAndTime = DistAndTime(0)
Variables ¶
View Source
var AllColors = [4]EventColor{RedEvent, GreenEvent, BlueEvent, YellowEvent}
TODO: This should be in the space data entry of the environment
View Source
var Log = m3util.NewLogger("m3space", m3util.INFO)
Functions ¶
func CreateAllIndexes ¶
Types ¶
type BaseSpacePackData ¶
func (*BaseSpacePackData) GetEnvId ¶
func (ppd *BaseSpacePackData) GetEnvId() m3util.QsmEnvID
type DistAndTime ¶
type DistAndTime int
type EventColor ¶
type EventColor uint8
const ( RedEvent EventColor = 1 << iota GreenEvent BlueEvent YellowEvent )
type EventIfc ¶
type EventIfc interface { fmt.Stringer GetId() EventId GetSpace() SpaceIfc GetPathContext() m3path.PathContext GetCreationTime() DistAndTime GetColor() EventColor GetCenterNode() NodeEventIfc GetActiveNodesAt(currentTime DistAndTime) ([]NodeEventIfc, error) }
type NodeEventId ¶
type NodeEventIfc ¶
type NodeEventIfc interface { fmt.Stringer m3path.ConnectionStateIfc GetId() NodeEventId GetEventId() EventId GetPointId() m3path.PointId GetPoint() (*m3point.Point, error) GetPathNodeId() m3path.PathNodeId GetPathNode() (m3path.PathNode, error) GetCreationTime() DistAndTime GetD() DistAndTime GetColor() EventColor }
type SpaceIfc ¶
type SpaceIfc interface { fmt.Stringer GetId() int GetName() string GetActiveThreshold() DistAndTime GetMaxTriosPerPoint() int GetMaxNodesPerPoint() int GetMaxTime() DistAndTime GetMaxCoord() m3point.CInt GetEvent(id EventId) EventIfc GetActiveEventsAt(atTime DistAndTime) []EventIfc GetSpaceTimeAt(atTime DistAndTime) SpaceTimeIfc CreateEvent(growthType m3point.GrowthType, growthIndex int, growthOffset int, creationTime DistAndTime, center m3point.Point, color EventColor) (EventIfc, error) }
type SpacePackDataIfc ¶
type SpaceTimeIfc ¶
type SpaceTimeIfc interface { fmt.Stringer GetSpace() SpaceIfc GetCurrentTime() DistAndTime GetActiveEvents() []EventIfc Next() SpaceTimeIfc GetNbActiveNodes() int GetNbActiveLinks() int VisitNodes(visitor SpaceTimeNodeVisitor) VisitLinks(visitor SpaceTimeLinkVisitor) GetDisplayState() string }
type SpaceTimeLinkVisitor ¶
type SpaceTimeLinkVisitor interface {
VisitLink(node SpaceTimeNodeIfc, srcPoint m3point.Point, connId m3point.ConnectionId)
}
type SpaceTimeNodeIfc ¶
type SpaceTimeNodeVisitor ¶
type SpaceTimeNodeVisitor interface {
VisitNode(node SpaceTimeNodeIfc)
}
Click to show internal directories.
Click to hide internal directories.