-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFactor.vb
62 lines (40 loc) · 1.16 KB
/
Factor.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Public Class Factor
' Dim lvls() As Double
Dim type As Byte
Dim myName As String
Dim increment As Boolean = False
Dim factorlist As New ArrayList()
Public Sub New(ByRef levels() As Object, ByVal type As Byte, ByVal name As String)
For i As Integer = 0 To UBound(levels)
factorlist.Add(levels(i))
Next
myName = name
Me.type = type
End Sub
Public Sub setIncrement(ByVal incr As Boolean)
Me.increment = incr
End Sub
Public Function getIncrement()
Return Me.increment
End Function
Public Function getNumLevels()
Return factorlist.Count
End Function
Public Function getLevel(ByVal levelNumber As Byte)
Return factorlist(levelNumber)
End Function
Public Sub removeLevel(ByVal levelNumber As Byte)
factorlist.RemoveAt(levelNumber)
End Sub
Public Sub addLevel(ByRef level As Object)
factorlist.Add(level)
End Sub
Public Property factorName As String
Get
Return myName
End Get
Set(value As String)
myName = value
End Set
End Property
End Class