Package com.mapsindoors.livesdk
Class LiveTopic
- java.lang.Object
-
- com.mapsindoors.livesdk.LiveTopic
-
- All Implemented Interfaces:
MPLiveTopic
- Direct Known Subclasses:
LiveTopicCriteria
public class LiveTopic extends java.lang.Object implements MPLiveTopic
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Check if an object is equal to this LiveTopic Both LiveTopic and LiveTopicCriteria can be equal to thisjava.lang.String
getBuilding()
Get the building of this topicjava.lang.String
getDataset()
Get the dataset of this topicjava.lang.String
getDomainType()
Get the domainType of this topic Example: "occupancy"java.lang.String
getFloor()
Get the floor of this topicjava.lang.String
getLocation()
Get the location of this topicjava.lang.String
getRoom()
Get the room of this topicjava.lang.String
getVenue()
Get the venue of this topicboolean
isMultiLevelWildcard()
boolean
matchesCriteria(LiveTopicCriteria liveTopicCriteria)
Check if a LiveTopicCriteria matches this LiveTopicboolean
matchesCriteria(MPLiveTopic liveTopic)
java.lang.String
topicString()
Create a topic string from this LiveTopic
-
-
-
Method Detail
-
getDataset
public java.lang.String getDataset()
Get the dataset of this topic- Returns:
- the dataset id
-
getVenue
public java.lang.String getVenue()
Get the venue of this topic- Returns:
- the venue id
-
getBuilding
public java.lang.String getBuilding()
Get the building of this topic- Returns:
- the building id
-
getFloor
public java.lang.String getFloor()
Get the floor of this topic- Returns:
- the floor id
-
getRoom
public java.lang.String getRoom()
Get the room of this topic- Returns:
- the room id
-
getLocation
public java.lang.String getLocation()
Get the location of this topic- Returns:
- the location id
-
getDomainType
public java.lang.String getDomainType()
Get the domainType of this topic Example: "occupancy"- Specified by:
getDomainType
in interfaceMPLiveTopic
- Returns:
- The domainType
-
isMultiLevelWildcard
public boolean isMultiLevelWildcard()
- Specified by:
isMultiLevelWildcard
in interfaceMPLiveTopic
-
topicString
public java.lang.String topicString()
Create a topic string from this LiveTopic- Specified by:
topicString
in interfaceMPLiveTopic
- Returns:
- a single string containing topic information for this LiveTopic. Each part is separated by a "/"
-
matchesCriteria
public boolean matchesCriteria(MPLiveTopic liveTopic)
- Specified by:
matchesCriteria
in interfaceMPLiveTopic
-
matchesCriteria
public boolean matchesCriteria(LiveTopicCriteria liveTopicCriteria)
Check if a LiveTopicCriteria matches this LiveTopic- Parameters:
liveTopicCriteria
- a LiveTopicCriteria- Returns:
- a boolean to tell if the LiveTopicCriteria matched this LiveTopic
-
equals
public boolean equals(java.lang.Object obj)
Check if an object is equal to this LiveTopic Both LiveTopic and LiveTopicCriteria can be equal to this- Specified by:
equals
in interfaceMPLiveTopic
- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- The Object to check if its equal- Returns:
- a boolean to tell if the Object is equal to this LiveTopic
-
-