SessionEvents
public class SessionEvents
Undocumented
-
Undocumented
Declaration
Swift
public var eventIDs: [String]
-
Undocumented
Declaration
Swift
public typealias EventMarker = (id: Int, milliseconds: Int)
-
Undocumented
Declaration
Swift
public private(set) var events: [SessionEvents.EventMarker]
-
Undocumented
Declaration
Swift
public private(set) var willWrite: PublishRelay<Int>
-
Undocumented
Declaration
Swift
public init(eventIDs: [String])
-
00: Event name
Declaration
Swift
public var EVENTS: String { get }
-
00: 1000(milliseconds)
Declaration
Swift
public var listOfEvents: String { get }
-
人間確認用
Declaration
Swift
public var logWithText: String { get }
-
BLE確認用
Declaration
Swift
public var logWithID: String { get }
-
Undocumented
Declaration
Swift
public private(set) var observableEventLog: Variable<(withID: String, withText: String)?>
-
Undocumented
Declaration
Swift
public func write(id: Int, milliseconds: Int)
-
idを元に抽出したtimeデータのみ取り出す。
Declaration
Swift
public func events(by id: Int) -> [Int]
-
Undocumented
Declaration
Swift
public func getId(from text: String) -> Int?
-
最後のafter idから数えていくつtarget idがあるか取得する。
Declaration
Swift
public func events(by targetID: Int, after afterID: Int?) -> [Int]
-
最後のbefore idまでに数えていくつtarget idがあったか。(強化後の反応数を取得するために使用。)
Declaration
Swift
public func events(by targetID: Int, before beforeID: Int?) -> [Int]
-
Undocumented
Declaration
Swift
public func listOfEvents(from events: [EventMarker]) -> String
-
Undocumented
Declaration
Swift
public func elapsedEvents(events: [EventMarker], skipID: (before: Int, after: Int)) -> (extendTime: Int, events: [EventMarker])
-
経過時間を測定する。id間のイベントをフィルタリングし,有効時間を算出する。(realTime->SessionTimeやFIのICIを算出)
Declaration
Swift
public func elapsedTime(startTime: Int = 0, endTime: Int? = nil, skipIDs: [(before: Int, after: Int)]) -> Int
-
フィルタリングしない経過時間を返す。
Declaration
Swift
public func extendTime(startTime: Int = 0, endTime: Int?=nil, skipIDs: [(before: Int, after: Int)]) -> Int