public class Outage extends BasicSchedule implements Serializable
Constructor and Description |
---|
Outage() |
Modifier and Type | Method and Description |
---|---|
void |
addInterface(Interface iface) |
void |
addInterface(int index,
Interface iface) |
void |
addNode(int index,
Node node) |
void |
addNode(Node node) |
Enumeration<Interface> |
enumerateInterface()
Method enumerateInterface.
|
Enumeration<Node> |
enumerateNode()
Method enumerateNode.
|
boolean |
equals(Object obj) |
Interface[] |
getInterface()
Method getInterface.Returns the contents of the collection
in an Array.
|
Interface |
getInterface(int index)
Method getInterface.
|
List<Interface> |
getInterfaceCollection()
Method getInterfaceCollection.Returns a reference to
'm_interfaces'.
|
int |
getInterfaceCount()
Method getInterfaceCount.
|
Node[] |
getNode()
Method getNode.Returns the contents of the collection in an
Array.
|
Node |
getNode(int index)
Method getNode.
|
List<Node> |
getNodeCollection()
Method getNodeCollection.Returns a reference to 'm_nodes'.
|
int |
getNodeCount()
Method getNodeCount.
|
int |
hashCode() |
boolean |
isValid()
Deprecated.
|
Iterator<Interface> |
iterateInterface()
Method iterateInterface.
|
Iterator<Node> |
iterateNode()
Method iterateNode.
|
void |
marshal(ContentHandler handler)
Deprecated.
|
void |
marshal(Writer out)
Deprecated.
|
void |
removeAllInterface() |
void |
removeAllNode() |
boolean |
removeInterface(Interface iface)
Method removeInterface.
|
Interface |
removeInterfaceAt(int index)
Method removeInterfaceAt.
|
boolean |
removeNode(Node node)
Method removeNode.
|
Node |
removeNodeAt(int index)
Method removeNodeAt.
|
void |
setInterface(Interface[] interfaces) |
void |
setInterface(int index,
Interface iface) |
void |
setInterface(List<Interface> interfaces)
Sets the value of 'm_interfaces' by copying the given
Vector.
|
void |
setInterfaceCollection(List<Interface> interfaces)
Deprecated.
|
void |
setNode(int index,
Node nodes) |
void |
setNode(List<Node> nodes)
Sets the value of 'm_nodes' by copying the given Vector.
|
void |
setNode(Node[] nodes) |
void |
setNodeCollection(List<Node> nodes)
Deprecated.
|
String |
toString() |
static BasicSchedule |
unmarshal(Reader reader)
Deprecated.
|
void |
validate()
Deprecated.
|
addTime, addTime, enumerateTime, getName, getTime, getTime, getTimeCollection, getTimeCount, getType, iterateTime, removeAllTime, removeTime, removeTimeAt, setName, setTime, setTime, setTime, setTimeCollection, setType
public void addInterface(Interface iface) throws IndexOutOfBoundsException
iface
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addInterface(int index, Interface iface) throws IndexOutOfBoundsException
index
- iface
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addNode(Node node) throws IndexOutOfBoundsException
node
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addNode(int index, Node node) throws IndexOutOfBoundsException
index
- node
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Interface> enumerateInterface()
public Enumeration<Node> enumerateNode()
public Interface getInterface(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Interface[] getInterface()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Interface> getInterfaceCollection()
public int getInterfaceCount()
public Node getNode(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Node[] getNode()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Node> getNodeCollection()
public int getNodeCount()
@Deprecated public boolean isValid()
isValid
in class BasicSchedule
public Iterator<Interface> iterateInterface()
public Iterator<Node> iterateNode()
@Deprecated public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshal
in class BasicSchedule
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshal
in class BasicSchedule
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllInterface()
public void removeAllNode()
public boolean removeInterface(Interface iface)
iface
- public Interface removeInterfaceAt(int index)
index
- public boolean removeNode(Node node)
node
- public Node removeNodeAt(int index)
index
- public void setInterface(int index, Interface iface) throws IndexOutOfBoundsException
index
- iface
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setInterface(Interface[] interfaces)
interfaces
- public void setInterface(List<Interface> interfaces)
interfaces
- the Vector to copy.public void setInterfaceCollection(List<Interface> interfaces)
m_interfaces
- the Vector to set.public void setNode(int index, Node nodes) throws IndexOutOfBoundsException
index
- nodes
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setNode(Node[] nodes)
nodes
- public void setNode(List<Node> nodes)
nodes
- the Vector to copy.public void setNodeCollection(List<Node> nodes)
nodes
- the Vector to set.@Deprecated public static BasicSchedule unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void validate() throws org.exolab.castor.xml.ValidationException
validate
in class BasicSchedule
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic int hashCode()
hashCode
in class BasicSchedule
public boolean equals(Object obj)
equals
in class BasicSchedule
Copyright © 2016. All rights reserved.