|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.base.utils.logging.marks.LogMapMark
public class LogMapMark
DON'T USE THIS CLASS! Use methods in LogCategory
to place mark on the map.
// create a mark that with text "text to show in map" that will be
// shown at the position of agent for its duration of 2secibds.
logger.info("Text to log" , new Object[]{LogMapMark.createFixedLengthEvent(Level.INFO, "text to show in map", null, 2000)});
Nested Class Summary | |
---|---|
static class |
LogMapMark.Type
|
Method Summary | |
---|---|
static LogMapMark |
createAgentFixedLengthEvent(java.util.logging.Level level,
java.lang.String message,
long duration)
Create map mark that appear in the map for certain time and will be always shown at the current position of agent. |
static LogMapMark |
createAgentVariableLengthEvent(java.util.logging.Level level,
java.lang.String message)
Create mark that will always be shown at the position of agent. |
static LogMapMark |
createFixedLengthEvent(java.util.logging.Level level,
java.lang.String message,
Location location,
long duration)
Create mark on the map that will stay there for some time. |
static LogMapMark |
createVariableLengthEvent(java.util.logging.Level level,
java.lang.String message,
Location location)
Create starting map mark. |
boolean |
equals(java.lang.Object otherObject)
|
long |
getCreated()
|
long |
getDuration()
|
LogMapMark |
getEndMark()
Get end mark to make some map mark disappear from map. |
int |
getId()
Get unique id of this map mark |
java.util.logging.Level |
getLevel()
Get level of mark, used mainly to send end marks at same level as starting. |
Location |
getLocation()
Get location of mark. |
Location |
getLocation(Location entityLoc)
Get location, where mark is supposed to be. |
java.lang.String |
getMessage()
|
LogMapMark.Type |
getType()
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LogMapMark createFixedLengthEvent(java.util.logging.Level level, java.lang.String message, Location location, long duration)
level
- level of mark, should be same as the level of carrying LogRecord
message
- text of map marklocation
- location, at which map mark should be located. If null, than mark will follow agent.duration
- how long should map mark be shown in the map.
public static LogMapMark createAgentFixedLengthEvent(java.util.logging.Level level, java.lang.String message, long duration)
level
- level of mark, should be same as the level of carrying LogRecord
message
- text of markduration
- how long should be mark shown
public static LogMapMark createAgentVariableLengthEvent(java.util.logging.Level level, java.lang.String message)
getEndMark()
on the starting mark (the one
returned by this method).
level
- level of mark, should be same as the level of carrying LogRecord
message
- text to be shown
public static LogMapMark createVariableLengthEvent(java.util.logging.Level level, java.lang.String message, Location location)
getEndMark()
on the starting mark (the one
returned by this method) and pass it to same log as starting mark.
message
- text of marklocation
- location, at which map mark should be located. If null, than mark will follow agent.
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getId()
public java.util.logging.Level getLevel()
public java.lang.String getMessage()
public Location getLocation()
getLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location)
public Location getLocation(Location entityLoc)
entityLoc
- location of agent this map mark belongs to
public long getCreated()
public long getDuration()
public LogMapMark.Type getType()
public LogMapMark getEndMark()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |