C# 클래스 SegmentUnit, plausible-deniability

identifies a unit on a path segment
this is a struct instead of a class because it compares by value
파일 보기 프로젝트 열기: ad510/plausible-deniability 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
g Sim,
segment Segment,
unit Unit,

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
deleteAfter ( Dictionary &removed, long &timeEarliestChild ) : bool

메소드 상세

SegmentUnit() 공개 메소드

public SegmentUnit ( Segment, segmentVal, Unit, unitVal ) : System
segmentVal Segment,
unitVal Unit,
리턴 System

canBeUnambiguousParent() 공개 메소드

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
리턴 bool

children() 공개 메소드

iterates over all segment/unit pairs that this unit in this segment could have made
public children ( ) : IEnumerable
리턴 IEnumerable

delete() 공개 메소드

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
리턴 bool

hasChildrenAfter() 공개 메소드

public hasChildrenAfter ( ) : bool
리턴 bool

next() 공개 메소드

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

parents() 공개 메소드

iterates over all segment/unit pairs that could have made this unit in this segment
public parents ( ) : IEnumerable
리턴 IEnumerable

prev() 공개 메소드

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

unseenAfter() 공개 메소드

public unseenAfter ( long time ) : bool
time long
리턴 bool

프로퍼티 상세

g 공개적으로 프로퍼티

public Sim, g
리턴 Sim,

segment 공개적으로 프로퍼티

public Segment, segment
리턴 Segment,

unit 공개적으로 프로퍼티

public Unit, unit
리턴 Unit,