0% found this document useful (0 votes)
153 views1 page

CST 338 Final Project Uml

The document describes a model class for tasks with properties like description and comment, and methods to get/set those properties. It also describes classes for a task adapter and main activity that use the model class and recycler views to display lists of tasks. The task adapter is responsible for populating view holders with task data from the model.

Uploaded by

api-482280770
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views1 page

CST 338 Final Project Uml

The document describes a model class for tasks with properties like description and comment, and methods to get/set those properties. It also describes classes for a task adapter and main activity that use the model class and recycler views to display lists of tasks. The task adapter is responsible for populating view holders with task data from the model.

Uploaded by

api-482280770
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

<<Abstract>> MainActivity TaskAdapter

Task
- recyclerView: RecyclerView callsList: ArrayList<TroubleCall>
- description: String - rvClosedTasks: RecyclerView activity: ItemClicked
- comment: String - taskAdapter: RecyclerView.Adapter type: int
- createdDateTime: LocalDateTime - closedTaskAdapter: RecyclerView.Adapter selected: int
- layoutManager: RecyclerView.LayoutManager
Model <<uses>>
+ getDescription(): String - closedTaskLayout: RecyclerView.LayoutManager onCreateViewHolder(parent: ViewGroup, viewType: int): TaskAdapter.ViewHolder
+ setDescription(description: String): boolean - btnNewTroubleCall: Button onBindViewHolder(holder: TaskAdapter.ViewHolder, position: int)
- lineNums: int[] - btnViewCalls: Button
+ getComment(): String getItemCount(): int
- machDescs: String[] - model: Model
+ setComment(comment: String): boolean
- lines: ArrayList<Line> - tempCall: TroubleCall
+ getCreatedDateTime(): LocalDateTime
- tasks: ArrayList<TroubleCall> - NEW_TROUBLE_CALL: int <<uses>>
+ getStartDateTime(): LocalDateTime
- openTasks: ArrayList<TroubleCall> - CLOSED_TASKS: int
+ setStartDateTime(dateTime: LocalDateTime): boolean
- testItemsCreated: boolean
+ getEndDateTime(): LocalDateTime
+ setEndDateTime(dateTime: LocalDateTime): boolean <<uses>> onCreate(savedInstanceState: Bundle): void
- initTestModel(): void onItemClicked(index: int, type: int): void ViewHolder
+ getLines(): ArrayList<Line> onActivityResult(requestCode: int, resultCode: int, data: Intent)
+ addLine(newLine: Line): boolean isComplete(call: TroubleCall): boolean tvDateTime: TextView
+ getLine(index: int): Line
tvCallDesc: TextView
+ getTasks(): ArrayList<TroubleCall>
TroubleCall btnStartTimer: Button
+ addTask(newTask: TroubleCall): boolean
btnEndCall: Button
+ getOpenTasks(): ArrayList<TroubleCall>
- startDateTime: LocalDateTime + getOpenTask(index: int): TroubleCall
- endDateTime: LocalDateTime + removeOpenTask(index: int): TroubleCall
- line: Line
- machine: MachineCenter
- issueDesc: String
- solutionDesc: String
- extReferenceNums: String NewTroubleCall
GenericRecyclerAdapter<T>
+ getLine(): Line recyclerView: RecyclerView
+ setLine(line: Line): boolean lineListAdapter: GenericRecyclerAdapter<Line> list: ArrayList<T>
+ getMachine(): MachineCenter machListAdapter: GenericRecyclerAdapter<MachineCenter> activity: ItemClicked
+ setMachine(machine: MachineCenter): boolean layoutManager: RecyclerView.LayoutManager LINE: int
+ getIssueDesc(): String model: Model MACHINE: int
+ setIssueDesc(issueDesc: String): boolean call: TroubleCall CLOSED_TASK: int
+ getSolutionDesc(): String btnSetStartTime: Button type: int
+ setSolutionDesc(solutionDesc: String): boolean btnSetEndTIme: Button
<<uses>> selected: int
+ getExtReferenceNums(): String <<interface>> btnSetLine: Button prevSelected: int
+ setExtReferenceNums(extReferenceNums: String): boolean Listable btnSetMach: Button
+ getCallDesc(): String btnSaveCall: Button
+ getStartDateTime(): LocalDateTime onCreateViewHolder(part: ViewGroup, viewType: int): GenericRecyclerAdapter.ViewHolder
etIssueDesc: EditText
+ setStartDateTime(dateTime: LocalDateTime): boolean onBindViewHolder(holder: GenericRecycler.ViewHolder, position: int): void
etSolutionDesc: EditText
+ getEndDateTime(): LocalDateTime getItemCount(): int
etExtRef: EditText
+ itemDesc(): String
+ setEndDateTime(dateTime: LocalDateTime): boolean LINE: int
MACHINE: int
EDIT_TROUBLE_CALL: int
lineSelected: int
<<uses>> machSelected: int
<<uses>> taskIsComplete: boolean

Machine Center onCreate(savedInstanceState: Bundle): void ViewHolder


<<uses>> init(): void
Line setListener(): void
- assetID: int tvListItems: TextView
onItemClicked(index: int, type: int): void
- description: String
- locationDescription: String - manufacturer: String
- lineNumber: int - model: String
- lineDescription: String - serialNum: String
- lineID: String
- machines: ArrayList<MachineCenter> + getAssetID: int
+ setAssetID(assetID: int): boolean
Location + getMachine(newMach: MachineCenter): Machine Center <<uses>> + getDescription(): String
+ getLocationDescription(): String + setDescription(description: String): boolean
- locationDescription: String + setLocationDescription(location: String): boolean + getManufacturer(): String
<<uses>>
- lines: ArrayList<Line> + getLineNumber(): int + setManufacturer(manufacturer: String): boolean
+ setLineNumber(lineNumber: int): int + getModel(): String
+ getLocationDescription(): String + getLineDescription(): String + setModel(model: String): boolean
+ setLocationDescription( locationDescription: String) : boolean + setLineDescription(lineDescription: String): boolean + getSerialNum(): String
+ getLines(): ArrayList<Line> + getLineID(): String + setSerialNum(serialNum: String): boolean
+ setLines(lines: ArrayList<Line>): void + setLineID(lineID: String): boolean + itemDesc(): String
+addLine(line: Line): boolean + itemDesc(): String

You might also like