SlotPath - PendulumProject2020/PendulumProject GitHub Wiki

Version: 0.1.9+

public class SlotPath

This class belongs to the main package. This class belongs to the Methodological layer.

The SlotPath object represents the location of a slot on a Piece Tree. It has the field piecePath specifying the path of the PieceProjection owning the slot, and the field slotName specifying the name of the slot.

Field Summary

private ArrayList<String> piecePath The path of the PieceProjection owning the slot on the Piece Tree.

private String slotName The name of the slot.

Constructor Summary

public SlotPath() Creates a SlotPath pointing to the root slot.

public SlotPath(String slotName) Creates a SlotPath with the specified slotName and an empty piecePath.

public SlotPath(ArrayList<String> piecePath, String slotName) Creates a SlotPath with the specified slotName and piecePath.

Method Summary

public boolean equals(SlotPath slotPath) Returns true if for both fields, the value from slotPath is equal to the value from this object. Returns false otherwise.

Getters and Setters

public ArrayList<String> getPiecePath()

public void setPiecePath(ArrayList<String> piecePath)

public String getSlotName()

public void setSlotName(String slotName)

⚠️ **GitHub.com Fallback** ⚠️