public class Watcher extends Object implements Comparable<Watcher>
This class is based on a data structure described at POOL.for from the SPICE library.
| Modifier and Type | Method and Description |
|---|---|
void |
addAgent(String agent)
Add an agent to the list.
|
int |
compareTo(Watcher w) |
boolean |
equals(Object obj) |
List<String> |
getAgents()
Getter for the list of agents to be notified if the variable change.
|
String |
getVarName()
Getter for the variable name of the watcher.
|
int |
hashCode() |
public Watcher(String var) throws IllegalArgumentException
var - variable to which we want to set a watcherIllegalArgumentException - if var is null or empty Stringpublic String getVarName()
public List<String> getAgents()
public void addAgent(String agent)
agent - agent to be added to the listpublic int compareTo(Watcher w)
compareTo in interface Comparable<Watcher>Copyright © 2024 CNES. All rights reserved.