Exemple #1
0
 // effects: Returns true if slotNum corresponds to a bool slot and
 // not a regular field
 protected bool IsBoolSlot(int slotNum)
 {
     return(ProjectedSlotMap.IsBoolSlot(slotNum, NumBoolSlots));
 }
Exemple #2
0
 // effects: Given the index of a boolean variable (e.g., of from1),
 // returns the slot number for that boolean in this
 protected int BoolIndexToSlot(int boolIndex)
 {
     // Booleans appear after the regular slot
     return(ProjectedSlotMap.BoolIndexToSlot(boolIndex, NumBoolSlots));
 }
Exemple #3
0
 // effects: Given a slotNum corresponding to a boolean slot, returns
 // the cel number that the cell corresponds to
 protected int SlotToBoolIndex(int slotNum)
 {
     return(ProjectedSlotMap.SlotToBoolIndex(slotNum, NumBoolSlots));
 }
Exemple #4
0
 // effects: Given a slot number, slotNum, returns the output member path
 // that this slot contributes/corresponds to in the extent view. If
 // the slot corresponds to one of the boolean variables, returns null
 protected MemberPath GetMemberPath(int slotNum)
 {
     return(ProjectedSlotMap.GetMemberPath(slotNum, NumBoolSlots));
 }