public class ApplicationNodeImpl extends Object implements ApplicationNode, Comparable<ApplicationNode>
Constructor and Description |
---|
ApplicationNodeImpl(Application application)
Creates a new instance of an ApplicationNode.
|
ApplicationNodeImpl(Application application,
ApplicationStatus status)
Creates a new instance of an ApplicationNode.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ApplicationNode otherApp) |
boolean |
equals(Object obj) |
Application |
getApplication()
Returns the application this node is referencing.
|
Set<ApplicationNode> |
getChildren()
Returns the children of this application.
|
ApplicationNode |
getParent()
Returns the parent of the application.
|
ApplicationStatus |
getStatus()
Returns the status for the application this node is referencing.
|
int |
hashCode() |
void |
setParent(ApplicationNode parent)
Sets the parent for this application.
|
void |
setStatus(ApplicationStatus status)
Sets the status of this application.
|
public ApplicationNodeImpl(Application application)
application
- The application that this node corresponds to.public ApplicationNodeImpl(Application application, ApplicationStatus status)
application
- The application that this node corresponds to.status
- Current status for the applicationpublic Application getApplication()
ApplicationNode
getApplication
in interface ApplicationNode
public ApplicationStatus getStatus()
ApplicationNode
getStatus
in interface ApplicationNode
public void setStatus(ApplicationStatus status)
status
- Current status for this applicationpublic ApplicationNode getParent()
ApplicationNode
getParent
in interface ApplicationNode
public void setParent(ApplicationNode parent)
parent
- Application Node that this application depends on.public Set<ApplicationNode> getChildren()
ApplicationNode
getChildren
in interface ApplicationNode
public int compareTo(ApplicationNode otherApp)
compareTo
in interface Comparable<ApplicationNode>
This work is licensed under a Creative Commons Attribution 4.0 International License.