SerranoGraphSymbol
public class SerranoGraphSymbol: GraphSymbol, Hashable
Implementation of GraphSymbol
-
Symbol type. Conforms to
GraphSymbol
.Declaration
Swift
public var symbolType: SymbolType
-
Unique symbol ID. Conforms to
GraphSymbol
.Note
A 6-lengthString
consists of[a-zA-Z0-9]
Declaration
Swift
public var UID: String
-
Readable label. Conforms to
GraphSymbol
.Declaration
Swift
public var symbolLabel: String
-
Inbound symbols list. Conforms to
GraphSymbol
. To prevent from cycle reference, we dynamic constructing this attribute frominBoundsWeak
.Declaration
Swift
public var inBounds: [GraphSymbol]
-
Outbound symbols list. Conforms to
GraphSymbol
. To prevent from cycle reference, we dynamic constructing this attribute frominBoundsWeak
.Declaration
Swift
public var outBounds: [GraphSymbol]
-
Hash value. Conforms to
equatable
protocol.Declaration
Swift
public var hashValue: Int
-
Weak reference array of inbounds objects
Declaration
Swift
internal var inBoundsWeak: [WeakSerranoGraphSymbol]
-
Weak reference array of outbounds objects
Declaration
Swift
internal var outBoundsWeak: [WeakSerranoGraphSymbol]
-
Designated init
Declaration
Swift
public init(label: String, symbolType: SymbolType, inBounds: [GraphSymbol], outBounds: [GraphSymbol])
Parameters
symbolType
symbolType
label
label
inBounds
inBounds
outBounds
outBounds
-
Convenience init
Declaration
Swift
public convenience init(_ label: String = "", symbolType: SymbolType)
Parameters
symbolType
symbolType
label
label
-
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Declaration
Swift
public func evaluate() -> [DataSymbolSupportedDataType]?
-
Add new symbol to
inBounds
. Should check duplicate.Declaration
Swift
public func addToInBound(_ symbol: GraphSymbol)
-
Add new symbol to
outBounds
Should check duplicate.Declaration
Swift
public func addToOutBound(_ symbol: GraphSymbol)
-
Conforms to
equatable
protocolDeclaration
Swift
public static func == (lhs: SerranoGraphSymbol, rhs: SerranoGraphSymbol) -> Bool
Parameters
lhs
left compare
rhs
right compare
Return Value
return value