C# Class SegmentUnit, plausible-deniability

identifies a unit on a path segment
this is a struct instead of a class because it compares by value
Afficher le fichier Open project: ad510/plausible-deniability Class Usage Examples

Méthodes publiques

Свойство Type Description
g Sim,
segment Segment,
unit Unit,

Méthodes publiques

Méthode Description
SegmentUnit ( Segment, segmentVal, Unit, unitVal ) : System
canBeUnambiguousParent ( long time ) : bool

returns whether this unit exists before specified time, so if it makes a child unit at specified time, it's unambiguous who is the parent

children ( ) : IEnumerable

iterates over all segment/unit pairs that this unit in this segment could have made

delete ( bool addMoveLines = false ) : bool

removes unit from this segment and fewest possible unseen segments such that all remaining possibilities are valid, returns whether successful

hasChildrenAfter ( ) : bool
next ( ) : IEnumerable

iterates over all segments containing this unit that branch off from the end of this segment

parents ( ) : IEnumerable

iterates over all segment/unit pairs that could have made this unit in this segment

prev ( ) : IEnumerable

iterates over all segments containing this unit that merge onto the beginning of this segment

unseenAfter ( long time ) : bool

Private Methods

Méthode Description
deleteAfter ( Dictionary &removed, long &timeEarliestChild ) : bool

Method Details

SegmentUnit() public méthode

public SegmentUnit ( Segment, segmentVal, Unit, unitVal ) : System
segmentVal Segment,
unitVal Unit,
Résultat System

canBeUnambiguousParent() public méthode

returns whether this unit exists before specified time, so if it makes a child unit at specified time, it's unambiguous who is the parent
public canBeUnambiguousParent ( long time ) : bool
time long
Résultat bool

children() public méthode

iterates over all segment/unit pairs that this unit in this segment could have made
public children ( ) : IEnumerable
Résultat IEnumerable

delete() public méthode

removes unit from this segment and fewest possible unseen segments such that all remaining possibilities are valid, returns whether successful
public delete ( bool addMoveLines = false ) : bool
addMoveLines bool
Résultat bool

hasChildrenAfter() public méthode

public hasChildrenAfter ( ) : bool
Résultat bool

next() public méthode

iterates over all segments containing this unit that branch off from the end of this segment
public next ( ) : IEnumerable
Résultat IEnumerable

parents() public méthode

iterates over all segment/unit pairs that could have made this unit in this segment
public parents ( ) : IEnumerable
Résultat IEnumerable

prev() public méthode

iterates over all segments containing this unit that merge onto the beginning of this segment
public prev ( ) : IEnumerable
Résultat IEnumerable

unseenAfter() public méthode

public unseenAfter ( long time ) : bool
time long
Résultat bool

Property Details

g public_oe property

public Sim, g
Résultat Sim,

segment public_oe property

public Segment, segment
Résultat Segment,

unit public_oe property

public Unit, unit
Résultat Unit,