org.netxms.client.situations
Class SituationInstance

java.lang.Object
  extended by org.netxms.client.situations.SituationInstance

public class SituationInstance
extends java.lang.Object

Situation instance object


Constructor Summary
protected SituationInstance(Situation parent, NXCPMessage msg, long baseId)
          Create situation instance from message
 
Method Summary
 java.lang.String getAttribute(java.lang.String name)
          Get attribute's value
 int getAttributeCount()
          Get number of attributes
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
           
 java.lang.String getName()
           
 Situation getParent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SituationInstance

protected SituationInstance(Situation parent,
                            NXCPMessage msg,
                            long baseId)
Create situation instance from message

Parameters:
msg - NXCP message
baseId - base variable id
Method Detail

getAttributeCount

public int getAttributeCount()
Get number of attributes

Returns:

getName

public java.lang.String getName()
Returns:
the name

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Get attribute's value

Parameters:
name - attribute's name
Returns:
attribute's value

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Returns:
the attributes

getParent

public Situation getParent()
Returns:
the parent


Copyright © 2012. All Rights Reserved.