org.npsnet.xrti.proxies
Interface Country

All Superinterfaces:
HLAobjectRoot
All Known Subinterfaces:
EconomicCountry
All Known Implementing Classes:
CountryProxy, EconomicCountryProxy

public interface Country
extends HLAobjectRoot

Autogenerated object instance interface.

Author:
org.npsnet.xrti.utilities.ProxyCompiler

Method Summary
 void addCountryListener(CountryListener l)
          Adds a listener for the attributes associated with the Country class.
 java.lang.String getName()
          Returns the value of the name attribute.
 double getPopulation()
          Returns the value of the population attribute.
 void removeCountryListener(CountryListener l)
          Removes a listener for the attributes associated with the Country class.
 void setName(java.lang.String pName, byte[] userSuppliedTag)
          Sets the value of the name attribute.
 void setPopulation(double pPopulation, byte[] userSuppliedTag)
          Sets the value of the population attribute.
 
Methods inherited from interface org.npsnet.xrti.proxies.HLAobjectRoot
addHLAobjectRootListener, removeHLAobjectRootListener
 

Method Detail

addCountryListener

public void addCountryListener(CountryListener l)
Adds a listener for the attributes associated with the Country class.

Parameters:
l - the listener to add

removeCountryListener

public void removeCountryListener(CountryListener l)
Removes a listener for the attributes associated with the Country class.

Parameters:
l - the listener to remove

setName

public void setName(java.lang.String pName,
                    byte[] userSuppliedTag)
             throws ObjectInstanceNotKnown,
                    AttributeNotDefined,
                    AttributeNotOwned,
                    FederateNotExecutionMember,
                    SaveInProgress,
                    RestoreInProgress,
                    RTIinternalError
Sets the value of the name attribute.

Parameters:
pName - the new attribute value
userSuppliedTag - a user-supplied tag to associate with the action
Throws:
ObjectInstanceNotKnown - if the object instance is unknown
AttributeNotDefined - if one of the attributes is undefined
AttributeNotOwned - if one of the attributes is not owned
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the run-time infrastructure

getName

public java.lang.String getName()
Returns the value of the name attribute.

Returns:
the current attribute value

setPopulation

public void setPopulation(double pPopulation,
                          byte[] userSuppliedTag)
                   throws ObjectInstanceNotKnown,
                          AttributeNotDefined,
                          AttributeNotOwned,
                          FederateNotExecutionMember,
                          SaveInProgress,
                          RestoreInProgress,
                          RTIinternalError
Sets the value of the population attribute.

Parameters:
pPopulation - the new attribute value
userSuppliedTag - a user-supplied tag to associate with the action
Throws:
ObjectInstanceNotKnown - if the object instance is unknown
AttributeNotDefined - if one of the attributes is undefined
AttributeNotOwned - if one of the attributes is not owned
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the run-time infrastructure

getPopulation

public double getPopulation()
Returns the value of the population attribute.

Returns:
the current attribute value