|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.info.ModifiableInfoHandler
public class ModifiableInfoHandler
An InfoHandler implementation, with updating methods added.
| Constructor Summary | |
|---|---|
ModifiableInfoHandler()
|
|
| Method Summary | |
|---|---|
void |
addInfoListener(InfoListener l)
Adds a listener for InfoEvents posted after the list changes. |
boolean |
assemblyIsEstablished(PRDAssemblyVer ai)
|
boolean |
assemblyIsPossible(PRDAssemblyVer assemblyInfo)
|
void |
clear()
Clears the list of Infos. |
boolean |
connectionIsPossible(PRDConnection connectionInfo)
|
boolean |
containsInfoThatEquals(PRDData info)
Returns true if the InfoHandler contains an info that equals info. |
boolean |
containsInfoThatIsAboutTheSameEntity(PRDData info)
Returns true if the InfoHandler contains an info that is about the same entity as info. |
void |
eventReceived(Event event)
|
void |
fireAllInfos()
Send out InfoEvents for all infos to listeners. |
PRDDevice |
getDeviceInfo(DeviceID deviceID)
|
PRDData |
getInfo(int index)
|
PRDData |
getInfoThatEquals(PRDData info)
|
PRDData |
getInfoThatIsAboutTheSameEntity(PRDData info)
|
java.lang.String |
getLongName(LocalSID serviceLocalSID)
Returns the long name of the service with a given LocalSID, or null if it does not exist in this handler. |
PRDConnection[] |
getMatchingConnectionInfos(PRDData info1,
PRDData info2)
|
int |
getNumberOfInfos()
|
PRDServiceFMDescription |
getServiceDescription(LocalSID providerLocalSID)
|
PRDServiceListItem |
getServiceListItem(LocalSID serviceLocalSID)
|
ServiceStatusEvent |
getServiceStatusEvent(LocalSID serviceLocalSID)
|
PRDServiceList |
getSubserviceList(LocalSID parentLocalSID)
|
void |
infoReceived(InfoEvent event)
Called as an info event has been received. |
void |
removeInfo(PRDData info)
Removes the info from the list, that is about the same entity as info. |
void |
removeInfoListener(InfoListener l)
Removes a listener previously added with addInfoListener(). |
boolean |
servicesMatch(PRDData info1,
PRDData info2)
|
void |
updateInfo(PRDData info)
Adds an Info to the list, or, if an info about the same entity is already in the list, updates it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModifiableInfoHandler()
| Method Detail |
|---|
public int getNumberOfInfos()
getNumberOfInfos in interface InfoHandlerpublic PRDData getInfo(int index)
getInfo in interface InfoHandlerpublic PRDData getInfoThatEquals(PRDData info)
getInfoThatEquals in interface InfoHandlerpublic PRDData getInfoThatIsAboutTheSameEntity(PRDData info)
getInfoThatIsAboutTheSameEntity in interface InfoHandlerpublic void updateInfo(PRDData info)
public void removeInfo(PRDData info)
public void infoReceived(InfoEvent event)
InfoListener
infoReceived in interface InfoListenerpublic void eventReceived(Event event)
public void fireAllInfos()
public void clear()
public boolean containsInfoThatEquals(PRDData info)
InfoHandler
containsInfoThatEquals in interface InfoHandlerpublic boolean containsInfoThatIsAboutTheSameEntity(PRDData info)
InfoHandler
containsInfoThatIsAboutTheSameEntity in interface InfoHandlerpublic void addInfoListener(InfoListener l)
InfoHandler
addInfoListener in interface InfoHandlerpublic void removeInfoListener(InfoListener l)
InfoHandler
removeInfoListener in interface InfoHandlerpublic PRDServiceListItem getServiceListItem(LocalSID serviceLocalSID)
getServiceListItem in interface InfoHandlerpublic ServiceStatusEvent getServiceStatusEvent(LocalSID serviceLocalSID)
public PRDDevice getDeviceInfo(DeviceID deviceID)
getDeviceInfo in interface InfoHandlerpublic PRDServiceFMDescription getServiceDescription(LocalSID providerLocalSID)
getServiceDescription in interface InfoHandlerpublic PRDServiceList getSubserviceList(LocalSID parentLocalSID)
getSubserviceList in interface InfoHandlerpublic java.lang.String getLongName(LocalSID serviceLocalSID)
InfoHandler
getLongName in interface InfoHandlerpublic boolean connectionIsPossible(PRDConnection connectionInfo)
connectionIsPossible in interface InfoHandlerpublic boolean assemblyIsEstablished(PRDAssemblyVer ai)
assemblyIsEstablished in interface InfoHandlerpublic boolean assemblyIsPossible(PRDAssemblyVer assemblyInfo)
assemblyIsPossible in interface InfoHandlerInfoHandler.connectionIsPossible(PRDConnection).
public boolean servicesMatch(PRDData info1,
PRDData info2)
servicesMatch in interface InfoHandler
public PRDConnection[] getMatchingConnectionInfos(PRDData info1,
PRDData info2)
getMatchingConnectionInfos in interface InfoHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||